-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (42 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.3.72'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
group 'dev.omuomugin'
version '0.1.0'
repositories {
mavenCentral()
jcenter()
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin/'
test.java.srcDirs += 'src/test/kotlin/'
}
jar {
manifest {
attributes 'Main-Class': 'MainKt'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6'
// cli
implementation "com.github.ajalt:clikt:2.7.0"
// yaml serialization
implementation "com.charleskorn.kaml:kaml:0.17.0"
// http client
implementation 'com.github.kittinunf.fuel:fuel:2.2.2'
implementation 'com.github.kittinunf.fuel:fuel-coroutines:2.2.2'
implementation 'com.github.kittinunf.fuel:fuel-kotlinx-serialization:2.2.2'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}