File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ infra {
15
15
}
16
16
17
17
val mainJavaToolchainVersion by ext(project.property(" java.mainToolchainVersion" ))
18
+ val modularJavaToolchainVersion by ext(project.property(" java.modularToolchainVersion" ))
18
19
19
20
allprojects {
20
21
repositories {
Original file line number Diff line number Diff line change 19
19
}
20
20
21
21
val mainJavaToolchainVersion: String by project
22
+ val modularJavaToolchainVersion: String by project
22
23
val serializationVersion: String by project
23
24
24
25
java {
@@ -214,7 +215,7 @@ tasks {
214
215
val targetDir = compileKotlinJvm.destinationDir.resolve(" ../java9/" )
215
216
216
217
// Use a Java 11 compiler for the module info.
217
- javaCompiler.set(project.javaToolchains.compilerFor { languageVersion.set(JavaLanguageVersion .of(11 )) })
218
+ javaCompiler.set(project.javaToolchains.compilerFor { languageVersion.set(JavaLanguageVersion .of(modularJavaToolchainVersion )) })
218
219
219
220
// Always compile kotlin classes before the module descriptor.
220
221
dependsOn(compileKotlinJvm)
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ kotlinVersion=1.5.30
9
9
serializationVersion =1.3.0
10
10
11
11
java.mainToolchainVersion =8
12
+ java.modularToolchainVersion =11
12
13
13
14
kotlin.mpp.enableGranularSourceSetsMetadata =true
14
15
kotlin.mpp.enableCompatibilityMetadataVariant =true
You can’t perform that action at this time.
0 commit comments