Skip to content

Commit 3893136

Browse files
Remove Gradle deprecations
Stop using JavaPluginConvention type and replace outputFile with destinationFile Issue gh-13864
1 parent fa15c97 commit 3893136

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ tasks.named("dispatchGitHubWorkflow") {
8888

8989
subprojects {
9090
plugins.withType(JavaPlugin) {
91-
project.sourceCompatibility=JavaVersion.VERSION_17
91+
java {
92+
sourceCompatibility=JavaVersion.VERSION_17
93+
}
9294
}
9395
tasks.withType(JavaCompile) {
9496
options.encoding = "UTF-8"

buildSrc/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ plugins {
44
id "groovy"
55
}
66

7-
sourceCompatibility = JavaVersion.VERSION_17
7+
java {
8+
sourceCompatibility = JavaVersion.VERSION_17
9+
}
810

911
repositories {
1012
gradlePluginPortal()

core/spring-security-core.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies {
3737
}
3838

3939
task springVersion(type: org.gradle.api.tasks.WriteProperties) {
40-
outputFile = file("${buildDir}/versions/spring-security.versions")
40+
destinationFile = file("${buildDir}/versions/spring-security.versions")
4141
property("org.springframework:spring-core", springVersion())
4242
}
4343

0 commit comments

Comments
 (0)