[gradle] 03/03: d/generate_pom.gradle: Normalize the Artifact IDs of all Gradle projects to match the real JAR names
Kai-Chung Yan
seamlik-guest at moszumanska.debian.org
Thu Sep 8 13:32:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
seamlik-guest pushed a commit to branch master
in repository gradle.
commit 7fd780be1604ae66838cf2af3eecb209770977c2
Author: Kai-Chung Yan (殷啟聰) <seamlikok at gmail.com>
Date: Thu Sep 8 21:31:37 2016 +0800
d/generate_pom.gradle: Normalize the Artifact IDs of all Gradle projects to match the real JAR names
---
debian/generate_pom.gradle | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/debian/generate_pom.gradle b/debian/generate_pom.gradle
index 3905757..3ad6090 100644
--- a/debian/generate_pom.gradle
+++ b/debian/generate_pom.gradle
@@ -7,6 +7,18 @@ task debianMavenPom {
pom {
project { artifactId archivesBaseName }
whenConfigured {
+ dependencies.each {
+ if (it.groupId == 'org.gradle') {
+ def normalizedName = it.artifactId.replaceAll("\\p{Upper}") {
+ "-${it.toLowerCase()}"
+ }
+ // Some artifacts are named gradle-* while some don't
+ it.artifactId = "gradle-$normalizedName".replaceAll(
+ 'gradle-gradle-',
+ 'gradle-'
+ )
+ }
+ }
setDependencies(getDependencies().toSorted { a, b ->
if ((a.scope <=> b.scope) != 0) {
a.scope <=> b.scope
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/gradle.git
More information about the pkg-java-commits
mailing list