more prep for included-build Gradle plugins

This commit is contained in:
Adam 2022-09-18 13:56:02 +02:00
parent bb973c7b9b
commit cc6e559843
8 changed files with 77 additions and 63 deletions

View file

@ -7,14 +7,20 @@ plugins {
val gradleJvmTarget = "11"
dependencies {
// This project should only be providing simple plugins for configuring Gradle without
// dependencies. Try to avoid setting dependencies here, else the Gradle script classpath might
// get polluted and messy.
}
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(gradleJvmTarget))
}
}
kotlinDslPluginOptions {
jvmTarget.set(gradleJvmTarget)
}
kotlinDslPluginOptions {
jvmTarget.set(gradleJvmTarget)
}
tasks.withType<KotlinCompile>().configureEach {