File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
2
+ import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile
1
3
import java.nio.file.Files
2
4
import java.nio.file.Paths
3
5
@@ -29,6 +31,22 @@ allprojects {
29
31
releaseMode = true
30
32
}
31
33
project.extra[" releaseMode" ] = releaseMode
34
+
35
+ afterEvaluate {
36
+ tasks.withType<KotlinCompile <* >> {
37
+ if (this is KotlinJvmCompile ) {
38
+ kotlinOptions {
39
+ apiVersion = " 1.3"
40
+ jvmTarget = " 1.8"
41
+ }
42
+ } else {
43
+ kotlinOptions {
44
+ // KN requires 1.4
45
+ apiVersion = " 1.4"
46
+ }
47
+ }
48
+ }
49
+ }
32
50
}
33
51
34
52
listOf (" check" , " build" , " clean" ).forEach { taskName ->
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ kotlin {
22
22
val commonTest by getting {
23
23
dependencies {
24
24
implementation(" org.spekframework.spek2:spek-dsl" )
25
- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8-1.4.0-rc " )
25
+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9 " )
26
26
implementation(" org.spekframework.spek2:spek-runtime" )
27
27
implementation(kotlin(" test" ))
28
28
}
@@ -32,7 +32,7 @@ kotlin {
32
32
compilations[" test" ].defaultSourceSet {
33
33
dependencies {
34
34
runtimeOnly(kotlin(" reflect" ))
35
- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.8-1.4.0-rc " )
35
+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.9 " )
36
36
implementation(" com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0" )
37
37
implementation(" org.mockito:mockito-core:2.23.4" )
38
38
runtimeOnly(" org.spekframework.spek2:spek-runner-junit5" )
You can’t perform that action at this time.
0 commit comments