Extracted variable javaVersion

This commit is contained in:
dankito 2022-03-13 23:45:48 +01:00
parent 688a156f52
commit c47dacae12
1 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
plugins { plugins {
id 'org.jetbrains.kotlin.jvm' id 'org.jetbrains.kotlin.jvm'
id "org.jetbrains.kotlin.plugin.allopen" version "1.4.10" id "org.jetbrains.kotlin.plugin.allopen" version "1.6.10"
id 'io.quarkus' id 'io.quarkus'
} }
@ -8,18 +8,20 @@ group 'net.dankito.banking.epcqrcode'
version '1.0.0-SNAPSHOT' version '1.0.0-SNAPSHOT'
def javaVersion = JavaVersion.VERSION_11
java { java {
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = javaVersion
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = javaVersion
} }
compileKotlin { compileKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11 kotlinOptions.jvmTarget = javaVersion
kotlinOptions.javaParameters = true kotlinOptions.javaParameters = true
} }
compileTestKotlin { compileTestKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11 kotlinOptions.jvmTarget = javaVersion
} }