Skip to content

Commit

Permalink
Remove Gradle deprecations
Browse files Browse the repository at this point in the history
Stop using JavaPluginConvention type and replace outputFile with destinationFile

Issue spring-projectsgh-13864
  • Loading branch information
marcusdacoregio committed Nov 6, 2023
1 parent fa15c97 commit 3893136
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ plugins {
id "groovy"
}

sourceCompatibility = JavaVersion.VERSION_17
java {
sourceCompatibility = JavaVersion.VERSION_17
}

repositories {
gradlePluginPortal()
Expand Down
2 changes: 1 addition & 1 deletion core/spring-security-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 3893136

Please sign in to comment.