diff --git a/build.gradle b/build.gradle index a169da4db57..e33d9bb35e6 100644 --- a/build.gradle +++ b/build.gradle @@ -88,7 +88,9 @@ tasks.named("dispatchGitHubWorkflow") { subprojects { plugins.withType(JavaPlugin) { - project.sourceCompatibility=JavaVersion.VERSION_17 + java { + sourceCompatibility=JavaVersion.VERSION_17 + } } tasks.withType(JavaCompile) { options.encoding = "UTF-8" diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 2d7927f6ba5..84373feb51f 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -4,7 +4,9 @@ plugins { id "groovy" } -sourceCompatibility = JavaVersion.VERSION_17 +java { + sourceCompatibility = JavaVersion.VERSION_17 +} repositories { gradlePluginPortal() diff --git a/core/spring-security-core.gradle b/core/spring-security-core.gradle index fcedeea9066..287abe43a17 100644 --- a/core/spring-security-core.gradle +++ b/core/spring-security-core.gradle @@ -37,7 +37,7 @@ dependencies { } task springVersion(type: org.gradle.api.tasks.WriteProperties) { - outputFile = file("${buildDir}/versions/spring-security.versions") + destinationFile = file("${buildDir}/versions/spring-security.versions") property("org.springframework:spring-core", springVersion()) }