Fix JVM version
This commit is contained in:
parent
9e37d6f752
commit
7a282fa207
@ -1,10 +1,14 @@
|
||||
import org.gradle.api.JavaVersion
|
||||
|
||||
/**
|
||||
* Build constants
|
||||
*/
|
||||
object Scientifik {
|
||||
const val coroutinesVersion = "1.3.4"
|
||||
const val serializationVersion = "0.20.0"
|
||||
const val JVM_VERSION = "11"
|
||||
|
||||
val JVM_TARGET = JavaVersion.VERSION_11
|
||||
// val JVM_VERSION = JVM_TARGET.toString()
|
||||
|
||||
object Serialization{
|
||||
const val xmlVersion = "0.20.0.0"
|
||||
|
@ -22,12 +22,12 @@ open class ScientifikJVMPlugin : Plugin<Project> {
|
||||
repositories.applyRepos()
|
||||
|
||||
extensions.findByType<JavaPluginExtension>()?.apply {
|
||||
targetCompatibility = enumValueOf(Scientifik.JVM_VERSION)
|
||||
targetCompatibility = Scientifik.JVM_TARGET
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
kotlinOptions {
|
||||
jvmTarget = Scientifik.JVM_VERSION
|
||||
jvmTarget = Scientifik.JVM_TARGET.toString()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ open class ScientifikMPPlugin : Plugin<Project> {
|
||||
jvm {
|
||||
compilations.all {
|
||||
kotlinOptions {
|
||||
jvmTarget = Scientifik.JVM_VERSION
|
||||
jvmTarget = Scientifik.JVM_TARGET.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user