Hotfix for jdkRelease problem
This commit is contained in:
parent
4a09e66c42
commit
619c2c280d
@ -1,3 +1,6 @@
|
|||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
import space.kscience.gradle.KScienceVersions
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
id("space.kscience.gradle.jvm")
|
id("space.kscience.gradle.jvm")
|
||||||
@ -6,10 +9,18 @@ plugins {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":magix:magix-rsocket"))
|
implementation(project(":magix:magix-rsocket"))
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk9:${space.kscience.gradle.KScienceVersions.coroutinesVersion}")
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk9:${KScienceVersions.coroutinesVersion}")
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = KScienceVersions.JVM_TARGET
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = KScienceVersions.JVM_TARGET
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//FIXME https://youtrack.jetbrains.com/issue/KT-52815/Compiler-option-Xjdk-release-fails-to-compile-mixed-projects
|
||||||
|
tasks.withType<KotlinCompile>{
|
||||||
|
kotlinOptions {
|
||||||
|
freeCompilerArgs -= "-Xjdk-release=11"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user