-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
174 lines (145 loc) · 4.55 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
buildscript {
ext.kotlin_version = '1.2.31'
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'jacoco'
apply plugin: 'application'
group = "com.github.sybila"
archivesBaseName = "pithya"
version = '1.3.5'
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
configurations.all { //refresh snapshots on every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'com.google.code.gson:gson:2.8.0'
compile 'org.yaml:snakeyaml:1.17'
compile 'com.google.code.gson:gson:2.6.2'
//ODE and CTL modules do not propagate this dependency, because it's part of the plugin
compile 'org.antlr:antlr4-runtime:4.6'
//BioDivine modules. We list all, since that will override possible old version in transitive dependencies
compile 'com.github.sybila:ode-generator:1.4.1'
compile 'com.github.sybila:ctl-model-checker:2.1.2'
compile 'com.github.sybila:ctl-parser:2.2.3'
compile 'args4j:args4j:2.33'
compile files('libs/com.microsoft.z3.jar')
compile 'com.github.sybila:terminal-components:1.0.0'
}
//Specify main class
jar {
manifest {
attributes 'Implementation-Title': 'Pithya',
'Implementation-Version': version,
'Main-Class': 'com.github.sybila.biodivine.StarterKt'
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
jacoco {
toolVersion = "0.7.5.201505241946"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat = 'full'
}
void
}
//travis has some strict RAM restrictions, can't afford to exceed this
tasks.withType(Test) {
maxHeapSize = "1024m"
jvmArgs "-Xmx1024m"
}
// bundle settings
mainClassName = "com.github.sybila.biodivine.exe.MainKt"
applicationName = "pithya"
task abstractionScript(type: CreateStartScripts) {
mainClassName = "com.github.sybila.biodivine.exe.ApproximationKt"
applicationName = "pithyaApproximation"
outputDir = new File(project.buildDir, 'scripts')
classpath = jar.outputs.files + project.configurations.runtime
}
applicationDistribution.into("bin") {
from(abstractionScript)
fileMode = 0755
}
task guiAbstr(type: CreateStartScripts) {
mainClassName = "com.github.sybila.biodivine.exe.GUIApproximationKt"
applicationName = "pithyaGUIapprox"
outputDir = new File(project.buildDir, 'scripts')
classpath = jar.outputs.files + project.configurations.runtime
}
applicationDistribution.into("bin") {
from(guiAbstr)
fileMode = 0755
}
task guiMain(type: CreateStartScripts) {
mainClassName = "com.github.sybila.biodivine.exe.GUIMainKt"
applicationName = "pithyaGUImain"
outputDir = new File(project.buildDir, 'scripts')
classpath = jar.outputs.files + project.configurations.runtime
}
applicationDistribution.into("bin") {
from(guiMain)
fileMode = 0755
}
task guiComponents(type: CreateStartScripts) {
mainClassName = "com.github.sybila.biodivine.exe.GUIComponentsKt"
applicationName = "pithyaGUIcomponents"
outputDir = new File(project.buildDir, 'scripts')
classpath = jar.outputs.files + project.configurations.runtime
}
applicationDistribution.into("bin") {
from(guiComponents)
fileMode = 0755
}
task componentsMain(type: CreateStartScripts) {
mainClassName = "com.github.sybila.biodivine.exe.ComponentsKt"
applicationName = "pithyaComponents"
outputDir = new File(project.buildDir, 'scripts')
classpath = jar.outputs.files + project.configurations.runtime
}
applicationDistribution.into("bin") {
from(componentsMain)
fileMode = 0755
}
task dumpStates(type: CreateStartScripts) {
mainClassName = "com.github.sybila.biodivine.exe.DumpStatesKt"
applicationName = "pithyaDumpStates"
outputDir = new File(project.buildDir, 'scripts')
classpath = jar.outputs.files + project.configurations.runtime
}
applicationDistribution.into("bin") {
from(dumpStates)
fileMode = 0755
}