mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 08:19:01 +00:00
Conditionally apply Kotlin if not using JDK 9
Kotlin does not yet work with JDK 9, so we need to disable the Kotlin plugin if we are using JDK 9.
This commit is contained in:
+10
-8
@@ -109,15 +109,17 @@ configure(allprojects) { project ->
|
||||
apply from: "${gradleScriptDir}/ide.gradle"
|
||||
apply from: "${gradleScriptDir}/sniffer.gradle"
|
||||
|
||||
apply plugin: "kotlin"
|
||||
compileKotlin {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.freeCompilerArgs = ["-Xskip-runtime-version-check"]
|
||||
if(!JavaVersion.current().java9Compatible) {
|
||||
apply plugin: "kotlin"
|
||||
compileKotlin {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.freeCompilerArgs = ["-Xskip-runtime-version-check"]
|
||||
|
||||
}
|
||||
compileTestKotlin {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.freeCompilerArgs = ["-Xskip-runtime-version-check"]
|
||||
}
|
||||
compileTestKotlin {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.freeCompilerArgs = ["-Xskip-runtime-version-check"]
|
||||
}
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
|
||||
Reference in New Issue
Block a user