Skip to content

Commit

Permalink
build: sets JVM toolchain to Java 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Nov 16, 2024
1 parent 6823e4a commit 5804a23
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,27 @@ subprojects {
}

plugins.withType(JavaPlugin).whenPluginAdded {
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

tasks.withType(JavaCompile) {
sourceCompatibility = '11'
targetCompatibility = '11'
}

project.archivesBaseName = project.name.startsWith('imposter-') ? project.name : 'imposter-' + project.name
}

plugins.withType(org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper).whenPluginAdded {
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
}
}

wrapper {
Expand Down

0 comments on commit 5804a23

Please sign in to comment.