-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkotlin.gradle
50 lines (43 loc) · 1.22 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
48
49
50
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',
//1.2.41:
//"-Xenable-jvm-default",
//1.2.50:
"-Xjvm-default=compatibility",
]
kotlin {
experimental {
coroutines 'enable'
}
}
kapt {
useBuildCache = true
}
compileKotlin {
incremental = projectIncremental
kotlinOptions {
jvmTarget = "$javaVersion"
freeCompilerArgs = projectFreeCompileArgs
}
}
compileTestKotlin {
incremental = projectIncremental
kotlinOptions {
jvmTarget = "$javaVersion"
freeCompilerArgs = projectFreeCompileArgs
}
}
dependencies {
//implementation "com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonKotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
}
}