-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (58 loc) · 1.65 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
plugins {
id 'application'
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.41'
id 'org.jetbrains.dokka' version '0.9.18'
id 'com.github.ben-manes.versions' version '0.22.0'
}
group 'au.csiro.data61.pcnsimulation'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.2'
compile 'com.google.guava:guava:28.0-jre'
compile 'io.javalin:javalin:3.4.1'
compile 'com.google.code.gson:gson:2.8.5'
compile 'org.jgrapht:jgrapht-core:1.3.1'
compile 'org.slf4j:slf4j-simple:1.7.27'
compile 'org.apache.commons:commons-math3:3.6.1'
compile 'info.picocli:picocli:4.0.2'
testCompile 'junit:junit:4.12'
}
sourceSets {
main {
resources { // remove unnecessary artifacts from resources
include 'simplelogger.properties'
include 'public/index.html'
include 'public/dist/**'
exclude 'public/dist/*.map'
}
}
}
jar {
manifest {
attributes "Main-Class": "au.csiro.data61.pcnsimulation.MainKt"
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } // fat JAR
}
test {
testLogging {
showStandardStreams = true
}
}
application {
mainClassName = 'au.csiro.data61.pcnsimulation.MainKt'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
kotlinOptions.freeCompilerArgs += ['-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi']
}
compileTestKotlin {
kotlinOptions.jvmTarget = '1.8'
}