-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
59 lines (46 loc) · 1.57 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
group 'us.ihmc.airly'
buildscript {
ext.kotlin_version = '1.3.0'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: "application"
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = "us.ihmc.airly.app.AirlyRxAppKt"
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '3.10.0'
compile group: 'com.squareup.retrofit2', name: 'retrofit', version: '2.4.0'
compile group: 'com.squareup.retrofit2', name: 'converter-gson', version: '2.4.0'
compile group: 'com.squareup.retrofit2', name: 'adapter-rxjava2', version: '2.4.0'
compile group: 'com.xenomachina', name: 'kotlin-argparser', version: '2.0.7'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile 'com.github.devcsrj:slf4j-okhttp3-logging-interceptor:1.0.1'
// Only if you want to run the app
testCompile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': mainClassName
}
baseName = "$rootProject.name-all"
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}