-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
54 lines (44 loc) · 1.31 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
defaultTasks "run" // default: gradle run
buildscript {
ext.kotlin_version = "1.1.0"
ext.gradle_version = "3.3"
ext.junit_version = "4.12"
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: "kotlin"
apply plugin: "application"
mainClassName = "com.x0.hatonekoe.ApplicationKt"
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "no.tornado:tornadofx:1.6.1"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testCompile "junit:junit:$junit_version"
}
test {
testLogging {
exceptionFormat = "full" // display log details when fail
}
}
task createJar(type: Jar, dependsOn: jar) {
archiveName = project.name + ".jar"
destinationDir = file("$rootDir/dist")
manifest {
attributes "Main-Class" : mainClassName
}
from configurations.compile.collect {it.isDirectory() ? it : zipTree(it)}
from "$buildDir/classes/main"
from "$buildDir/resources/main"
}
task wrapper(type: Wrapper) {
gradleVersion = "$gradle_version"
}