-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkotlin.gradle
47 lines (40 loc) · 1.13 KB
/
kotlin.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
allprojects {
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'org.jetbrains.kotlin.plugin.noarg'
apply plugin: 'org.jetbrains.kotlin.plugin.spring'
def projectIncremental = true
def projectFreeCompileArgs = [
'-Xjsr305=strict',
'-java-parameters',
'-Xenable-jvm-default',
]
kotlin {
experimental {
coroutines 'enable'
}
}
kapt {
useBuildCache = true
}
compileKotlin {
incremental = projectIncremental
kotlinOptions {
jvmTarget = "$javaVersion"
freeCompilerArgs = projectFreeCompileArgs
}
}
compileTestKotlin {
incremental = projectIncremental
kotlinOptions {
jvmTarget = "$javaVersion"
freeCompilerArgs = projectFreeCompileArgs
}
}
dependencies {
//compile("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonKotlinVersion")
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
}
}