Skip to content

Commit da8ee51

Browse files
committed
Set explicit duplicatesStrategy for all Copy and Archive Gradle tasks (#1643)
Gradle 7.0 changed the default duplicates Strategy to error when duplicates for a copy or archive operations are detected. This leads to the build to fail as the elasticsearch hadoop project relied on ignoring duplicates. With this change we set the duplicatesStrategy for every related task to EXCLUDE
1 parent 5f9a660 commit da8ee51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ defaultTasks 'build'
88

99
allprojects {
1010
group = "org.elasticsearch"
11+
tasks.withType(AbstractCopyTask) {
12+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
13+
}
1114
}
1215

1316
// Simple utility task to help with downloading artifacts and jars

0 commit comments

Comments
 (0)