Skip to content

Commit

Permalink
chore: add java toolchain and remove 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
m-raab committed Nov 2, 2022
1 parent 6533ba1 commit dc2c9b8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ plugins {
`java-gradle-plugin`
groovy

kotlin("jvm") version "1.7.10"
kotlin("jvm") version "1.7.20"

// test coverage
jacoco
Expand Down Expand Up @@ -87,8 +87,10 @@ pluginBundle {
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
vendor.set(JvmVendorSpec.ADOPTIUM)
}
}

// set correct project status
Expand All @@ -101,13 +103,15 @@ detekt {
config = files("detekt.yml")
}

tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
kotlin {
jvmToolchain {
this.languageVersion.set(JavaLanguageVersion.of(11))
}
}

tasks {
withType<Test>().configureEach {
systemProperty("intershop.gradle.versions", "7.2,7.5.1")
systemProperty("intershop.gradle.versions", "7.5.1")

testLogging {
showStandardStreams = true
Expand Down Expand Up @@ -178,10 +182,6 @@ tasks {

getByName("jar").dependsOn("asciidoctor")

withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}

dokkaJavadoc.configure {
outputDirectory.set(buildDir.resolve("dokka"))
}
Expand Down

0 comments on commit dc2c9b8

Please sign in to comment.