-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
60 lines (48 loc) · 1.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
group 'com.kfwong.elvis'
version '1.3.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.1.4-2'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M2'
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile 'com.github.kittinunf.fuel:fuel:1.9.0'
compile 'com.github.kittinunf.fuel:fuel-gson:1.9.0'
compile 'no.tornado:tornadofx:1.7.9'
compile 'com.google.guava:guava:23.0'
compile 'com.squareup.okhttp3:okhttp:3.8.1'
compile 'de.jensd:fontawesomefx-commons:8.15'
compile 'de.jensd:fontawesomefx-icons525:3.0.0-4'
testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testCompile 'io.kotlintest:kotlintest:2.0.5'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'com.kfwong.elvis.MainKt'
)
}
// This line of code recursively collects and copies all of a project's files
// and adds them to the JAR itself. One can extend this task, to skip certain
// files or particular types at will
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}