From 56b60120fe0c59b00a4d01a1af70a8874e41776f Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Tue, 20 Jun 2023 16:30:33 +0800 Subject: [PATCH] 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 --- spring-core/spring-core.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-core/spring-core.gradle b/spring-core/spring-core.gradle index a5c503f623..494db8b44f 100644 --- a/spring-core/spring-core.gradle +++ b/spring-core/spring-core.gradle @@ -100,12 +100,12 @@ jar { manifest.attributes["Dependencies"] = "jdk.unsupported" // for WildFly (-> Objenesis 3.2) dependsOn javapoetRepackJar - from(zipTree(javapoetRepackJar.archivePath)) { + from(zipTree(javapoetRepackJar.archiveFile)) { include "org/springframework/javapoet/**" } dependsOn objenesisRepackJar - from(zipTree(objenesisRepackJar.archivePath)) { + from(zipTree(objenesisRepackJar.archiveFile)) { include "org/springframework/objenesis/**" } } @@ -137,7 +137,7 @@ eclipse { def pattern = ~/\/spring-\w+-repack-/ entries.forEach { if (pattern.matcher(it.path).find()) { - def sourcesJar = it.path.replace('.jar', '-sources.jar'); + def sourcesJar = it.path.replace('.jar', '-sources.jar') it.sourcePath = fileReference(file(sourcesJar)) } }