Skip to content

Commit 56b6012

Browse files
quaffsbrannen
authored andcommitted
Stop using deprecated AbstractArchiveTask.archivePath in Gradle build
This commit addresses the following warning in the build. The AbstractArchiveTask.archivePath property has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the archiveFile property instead. See https://docs.gradle.org/8.1.1/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:archivePath for more details. Closes gh-30697
1 parent 1364a17 commit 56b6012

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-core/spring-core.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ jar {
100100
manifest.attributes["Dependencies"] = "jdk.unsupported" // for WildFly (-> Objenesis 3.2)
101101

102102
dependsOn javapoetRepackJar
103-
from(zipTree(javapoetRepackJar.archivePath)) {
103+
from(zipTree(javapoetRepackJar.archiveFile)) {
104104
include "org/springframework/javapoet/**"
105105
}
106106

107107
dependsOn objenesisRepackJar
108-
from(zipTree(objenesisRepackJar.archivePath)) {
108+
from(zipTree(objenesisRepackJar.archiveFile)) {
109109
include "org/springframework/objenesis/**"
110110
}
111111
}
@@ -137,7 +137,7 @@ eclipse {
137137
def pattern = ~/\/spring-\w+-repack-/
138138
entries.forEach {
139139
if (pattern.matcher(it.path).find()) {
140-
def sourcesJar = it.path.replace('.jar', '-sources.jar');
140+
def sourcesJar = it.path.replace('.jar', '-sources.jar')
141141
it.sourcePath = fileReference(file(sourcesJar))
142142
}
143143
}

0 commit comments

Comments
 (0)