|
|
|
|
@ -123,16 +123,35 @@ updateDependenciesSettings {
@@ -123,16 +123,35 @@ updateDependenciesSettings {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
subprojects { |
|
|
|
|
plugins.withType(JavaPlugin) { |
|
|
|
|
project.sourceCompatibility=JavaVersion.VERSION_17 |
|
|
|
|
def toolchainVersion() { |
|
|
|
|
if (project.hasProperty('testToolchain')) { |
|
|
|
|
return project.property('testToolchain').toString().toInteger() |
|
|
|
|
} |
|
|
|
|
tasks.withType(JavaCompile) { |
|
|
|
|
return 17 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
subprojects { |
|
|
|
|
def toolchainVersion = toolchainVersion() |
|
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile).configureEach { |
|
|
|
|
options.encoding = "UTF-8" |
|
|
|
|
options.compilerArgs.add("-parameters") |
|
|
|
|
|
|
|
|
|
java { |
|
|
|
|
toolchain { |
|
|
|
|
languageVersion = JavaLanguageVersion.of(toolchainVersion) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tasks.withType(Test).configureEach { |
|
|
|
|
java { |
|
|
|
|
toolchain { |
|
|
|
|
languageVersion = JavaLanguageVersion.of(toolchainVersion) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
allprojects { |
|
|
|
|
if (!['spring-security-bom', 'spring-security-docs'].contains(project.name)) { |
|
|
|
|
@ -158,12 +177,6 @@ allprojects {
@@ -158,12 +177,6 @@ allprojects {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile).configureEach { |
|
|
|
|
javaCompiler = javaToolchains.compilerFor { |
|
|
|
|
languageVersion = JavaLanguageVersion.of(17) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (hasProperty('buildScan')) { |
|
|
|
|
|