You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2026/03/26 02:27:22 UTC
(groovy) 03/03: minor refactor: remove a build warning related to jar
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
commit f242122dd96419a44cfe9a1a61bd4e3d1f813bf7
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Mar 26 12:27:11 2026 +1000
minor refactor: remove a build warning related to jar
---
build-logic/src/main/groovy/org.apache.groovy-base.gradle | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/build-logic/src/main/groovy/org.apache.groovy-base.gradle b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
index 0ba764beb1..2d86f8c29d 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-base.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
@@ -161,7 +161,8 @@ tasks.withType(AbstractArchiveTask).configureEach {
tasks.withType(Jar).configureEach { jar ->
metaInf {
- if (jar.name in ['jar', 'sourcesJar']) {
+ // root project provides its own JARJAR license/notice in its jar task
+ if (jar.name in ['jar', 'sourcesJar'] && project != rootProject) {
if (file("${projectDir}/LICENSE").exists()) {
from "${projectDir}/LICENSE"
} else {