Hotfix for jdkRelease problem

This commit is contained in:
Alexander Nozik 2022-08-02 10:12:16 +03:00
parent 4a09e66c42
commit 619c2c280d
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -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"
}
} }