This repository was archived by the owner on Dec 20, 2025. It is now read-only.
Commit 1b0682a
authored
refactor(deprecation): remove deprecated gradle constructs/features to be consumed by other spinnaker components (#194)
While executing the build script with --warning-mode=fail for fiat, gate, clouddriver, orca, front50, igor, echo and halyard received below error:
```
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0
```
And the common deprecated gradle feature is:
```
Copying or archiving duplicate paths with the default duplicates strategy has been deprecated. This is scheduled to be removed in Gradle 7.0. Explicitly set the duplicates strategy to 'DuplicatesStrategy.INCLUDE' if we want to allow duplicate paths. Consult the upgrading guide for further information: https://docs.gradle.org/6.8.3/userguide/upgrading_version_5.html#implicit_duplicate_strategy_for_copy_or_archive_tasks_has_been_deprecated
```
The issue is raised by `processResources` and `sourceJar` tasks and both inherit from `AbstractCopyTask`. So updated the tasks of type `AbstractCopyTask` with `duplicatesStrategy` property explicitly in `spinnaker-project-plugin`, that makes the property consumable by all spinnaker components.1 parent 1a6d17b commit 1b0682a
1 file changed
Lines changed: 5 additions & 0 deletions
File tree
- spinnaker-project-plugin/src/main/groovy/com/netflix/spinnaker/gradle/project
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
0 commit comments