This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1410d036b3 minor refactor: hush duplicate warnings in build when 
building aggregate jars
1410d036b3 is described below

commit 1410d036b3e202635b129dcb381472f29ed576bc
Author: Paul King <[email protected]>
AuthorDate: Wed Apr 15 19:01:14 2026 +1000

    minor refactor: hush duplicate warnings in build when building aggregate 
jars
---
 build-logic/src/main/groovy/org.apache.groovy-distribution.gradle | 1 +
 build.gradle                                                      | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/build-logic/src/main/groovy/org.apache.groovy-distribution.gradle 
b/build-logic/src/main/groovy/org.apache.groovy-distribution.gradle
index df19285292..19ea3b4208 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-distribution.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-distribution.gradle
@@ -206,6 +206,7 @@ tasks.register("asciidocAll", Copy) {
     from configurations.allAsciidoc
     from tasks.named('asciidoctor')
     into layout.buildDirectory.dir("asciidocAll/html5")
+    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
 }
 
 tasks.named('asciidoctorPdf') {
diff --git a/build.gradle b/build.gradle
index fe2db03825..d8f230946f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -189,6 +189,9 @@ tasks.named('jar') {
     exclude '**/package-info.class'
 }
 
+tasks.named('sourcesJar') {
+    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+}
 
 // some tests require Jars, but those are not allowed in the source directory
 // by the Apache policy, so we need to build them and add them to the test

Reply via email to