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 2b773ed244 align with current best practice
2b773ed244 is described below
commit 2b773ed24484b89781b6612a5734bbf315377259
Author: Paul King <[email protected]>
AuthorDate: Tue Aug 19 15:59:58 2025 +1000
align with current best practice
---
build-logic/src/main/groovy/org.apache.groovy-base.gradle | 2 +-
1 file changed, 1 insertion(+), 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 16518ad300..a07154929c 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-base.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
@@ -158,7 +158,7 @@ tasks.withType(AbstractArchiveTask).configureEach {
tasks.withType(Jar).configureEach { jar ->
metaInf {
- if (jar.name == 'sourcesJar') {
+ if (jar.name in ['jar', 'sourcesJar']) {
if (file("${projectDir}/LICENSE").exists()) {
from "${projectDir}/LICENSE"
} else {