Skip to content

Commit

Permalink
Replace deprecated archivePath
Browse files Browse the repository at this point in the history
Fix deprecation warning

```
The AbstractArchiveTask.archivePath property has been deprecated. This is
scheduled to be removed in Gradle 9.0. Please use the archiveFile property
instead. For more information, please refer to
https://docs.gradle.org/8.8/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:archivePath
in the Gradle documentation.
```

`.archivePath` has been deprecated and will be removed in Gradle 9.0.
Use `.archiveFile.get().asFile` instead.

Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
  • Loading branch information
juergen-walter committed Sep 26, 2024
1 parent 54873bf commit 36faf96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ subprojects {
tasks.register('copyDataPrepperArchive', Copy) {
dependsOn ':release:archives:linux:linuxx64DistTar'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from project(':release:archives:linux').tasks.getByName('linuxx64DistTar').archivePath
from project(':release:archives:linux').tasks.getByName('linuxx64DistTar').archiveFile.get().asFile
into("${project.buildDir}/docker/")
}

Expand Down
2 changes: 1 addition & 1 deletion release/archives/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ CopySpec archiveToTar() {
return copySpec {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
into('lib') {
from project(':data-prepper-main').jar.archivePath
from project(':data-prepper-main').jar.archiveFile.get().asFile
from configurations.runtimeClasspath
//from allDependencyJarsFromMain(project(path: ':data-prepper-main', configuration: 'allDependencyJars')).runtimeClasspath
//from project(':data-prepper-main').configurations.allDependencyJars
Expand Down
2 changes: 1 addition & 1 deletion release/docker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
docker {
name "${project.rootProject.name}:${project.version}"
tag "${project.rootProject.name}", "${project.version}"
files project(':release:archives:linux').tasks.getByName('linuxx64DistTar').archivePath
files project(':release:archives:linux').tasks.getByName('linuxx64DistTar').archiveFile.get().asFile
files "${project.projectDir}/config/default-data-prepper-config.yaml", "${project.projectDir}/config/default-keystore.p12"
files 'adoptium.repo'
buildArgs(['ARCHIVE_FILE' : project(':release:archives:linux').tasks.getByName('linuxx64DistTar').archiveFileName.get(),
Expand Down

0 comments on commit 36faf96

Please sign in to comment.