[gradle] 01/01: New generate-pom.diff: Auto generate POMs and install to /usr/share/maven-repo
Kai-Chung Yan
seamlik-guest at moszumanska.debian.org
Thu Oct 8 09:43:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
seamlik-guest pushed a commit to branch master
in repository gradle.
commit 7fd96722a3ab78774fadb5bc4f935c0e8eeb56f2
Author: Kai-Chung Yan <seamlikok at gmail.com>
Date: Thu Oct 8 17:43:15 2015 +0800
New generate-pom.diff: Auto generate POMs and install to /usr/share/maven-repo
---
debian/changelog | 5 +++--
debian/control | 1 +
debian/generate-pom.gradle | 10 +++++++++
debian/gradle.poms | 2 ++
debian/libgradle-core-java.poms | 13 ++++++++++++
debian/libgradle-plugins-java.poms | 37 ++++++++++++++++++++++++++++++++++
debian/patches/generate_classpath.diff | 2 +-
debian/patches/generate_pom.diff | 17 ++++++++++++++++
debian/patches/series | 1 +
debian/rules | 6 +++++-
10 files changed, 90 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index ac1ea55..7522a52 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,15 +23,16 @@ gradle (2.7-1) UNRELEASED; urgency=low
* Add an application menu entry for Gradle GUI
* Add symlinks to all Gradle jars in /usr/share/gradle, making a pseudo
making a pseudo Gradle installation
- * New d/generate-classpath.gradle and generate_classpath.diff: Auto generate
+ * New d/generate-classpath.gradle: Auto generate
classpath attributes to jar manifest
* Refresh use_local_artifacts.diff and jetty.diff to migrate to Tomcat 8
(Closes: #801014)
+ * New d/generate-pom.gradle: Auto generate POMs and install to maven-repo
[ Emmanuel Bourg ]
* debian/watch: Exclude the release candidates from the versions reported
- -- Kai-Chung Yan <seamlikok at gmail.com> Sat, 08 Oct 2015 09:37:27 +0800
+ -- Kai-Chung Yan <seamlikok at gmail.com> Thu, 08 Oct 2015 16:37:27 +0800
gradle (2.5-3) unstable; urgency=medium
diff --git a/debian/control b/debian/control
index 13b5522..6514ca8 100644
--- a/debian/control
+++ b/debian/control
@@ -70,6 +70,7 @@ Build-Depends: ant,
libxbean-java,
libxerces2-java,
libxslthl-java,
+ maven-repo-helper,
pandoc,
testng
Standards-Version: 3.9.6
diff --git a/debian/generate-pom.gradle b/debian/generate-pom.gradle
new file mode 100644
index 0000000..54c2497
--- /dev/null
+++ b/debian/generate-pom.gradle
@@ -0,0 +1,10 @@
+subprojects {
+ apply plugin: 'maven'
+ afterEvaluate {
+ pom {
+ project {
+ artifactId archivesBaseName
+ }
+ }.writeTo(new java.io.File(rootDir, "debian/${archivesBaseName}.pom"))
+ }
+}
\ No newline at end of file
diff --git a/debian/gradle.poms b/debian/gradle.poms
new file mode 100644
index 0000000..1a66058
--- /dev/null
+++ b/debian/gradle.poms
@@ -0,0 +1,2 @@
+debian/gradle-launcher.pom
+debian/gradle-ui.pom
\ No newline at end of file
diff --git a/debian/libgradle-core-java.poms b/debian/libgradle-core-java.poms
new file mode 100644
index 0000000..bc1808e
--- /dev/null
+++ b/debian/libgradle-core-java.poms
@@ -0,0 +1,13 @@
+debian/gradle-base-services-groovy.pom --usj-name=gradle-base-services-groovy
+debian/gradle-base-services.pom --usj-name=gradle-base-services
+debian/gradle-cli.pom --usj-name=gradle-cli
+debian/gradle-core.pom --usj-name=gradle-core
+debian/gradle-docs.pom --usj-name=gradle-docs
+debian/gradle-messaging.pom --usj-name=gradle-messaging
+debian/gradle-model-core.pom --usj-name=gradle-model-core
+debian/gradle-model-groovy.pom --usj-name=gradle-model-groovy
+debian/gradle-native.pom --usj-name=gradle-native
+debian/gradle-open-api.pom --usj-name=gradle-open-api
+debian/gradle-resources.pom --usj-name=gradle-resources
+debian/gradle-tooling-api.pom --usj-name=gradle-tooling-api
+debian/gradle-wrapper.pom --usj-name=gradle-wrapper
\ No newline at end of file
diff --git a/debian/libgradle-plugins-java.poms b/debian/libgradle-plugins-java.poms
new file mode 100644
index 0000000..ef2da22
--- /dev/null
+++ b/debian/libgradle-plugins-java.poms
@@ -0,0 +1,37 @@
+debian/gradle-announce.pom
+debian/gradle-antlr.pom
+debian/gradle-build-comparison.pom
+debian/gradle-build-init.pom
+debian/gradle-code-quality.pom
+debian/gradle-dependency-management.pom
+debian/gradle-diagnostics.pom
+debian/gradle-ear.pom
+debian/gradle-ide-native.pom
+debian/gradle-ide.pom
+debian/gradle-ivy.pom
+debian/gradle-jacoco.pom
+debian/gradle-javascript.pom
+debian/gradle-jetty.pom
+debian/gradle-language-groovy.pom
+debian/gradle-language-java.pom
+debian/gradle-language-jvm.pom
+debian/gradle-language-native.pom
+debian/gradle-language-scala.pom
+debian/gradle-maven.pom
+debian/gradle-osgi.pom
+debian/gradle-platform-base.pom
+debian/gradle-platform-jvm.pom
+debian/gradle-platform-native.pom
+debian/gradle-platform-play.pom
+debian/gradle-plugin-development.pom
+debian/gradle-plugin-use.pom
+debian/gradle-plugins.pom
+debian/gradle-publish.pom
+debian/gradle-reporting.pom
+debian/gradle-resources-http.pom
+debian/gradle-resources-sftp.pom
+debian/gradle-scala.pom
+debian/gradle-signing.pom
+debian/gradle-test-kit.pom
+debian/gradle-testing-native.pom
+debian/gradle-tooling-api-builders.pom
\ No newline at end of file
diff --git a/debian/patches/generate_classpath.diff b/debian/patches/generate_classpath.diff
index ad7c69c..6e252e1 100644
--- a/debian/patches/generate_classpath.diff
+++ b/debian/patches/generate_classpath.diff
@@ -12,5 +12,5 @@ Lasy-Update: 2015-10-03
}
apply from: 'gradle/pullRequestBuild.gradle'
-+apply from: "debian/generate-classpath.gradle"
++apply from: 'debian/generate-classpath.gradle'
\ No newline at end of file
diff --git a/debian/patches/generate_pom.diff b/debian/patches/generate_pom.diff
new file mode 100644
index 0000000..5a0c80d
--- /dev/null
+++ b/debian/patches/generate_pom.diff
@@ -0,0 +1,17 @@
+Description:
+ By default Gradle won't generate POMs for itself. generate-pom.gradle makes
+ Gradle auto generate POMs for all of the JARs so that we can install the
+ POMs to /usr/share/maven-repo
+Author: Kai-Chung Yan <seamlikok at gmail.com>
+Last-Updtae: 2015-10-08
+--- a/build.gradle
++++ b/build.gradle
+@@ -201,4 +201,5 @@
+ }
+
+ apply from: 'gradle/pullRequestBuild.gradle'
+-apply from: 'debian/generate-classpath.gradle'
+\ No newline at end of file
++apply from: 'debian/generate-classpath.gradle'
++apply from: 'debian/generate-pom.gradle'
+\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
index a274943..11121d0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -21,3 +21,4 @@ maven-aether-provider.diff
maven_builder_support.diff
use-bndlib-1.50.0.patch
generate_classpath.diff
+generate_pom.diff
diff --git a/debian/rules b/debian/rules
index 3ef3461..fec1490 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,7 +17,7 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif
%:
- dh $@ --with javahelper
+ dh $@ --with javahelper,jh_maven_repo_helper
override_dh_auto_build:
@@ -30,6 +30,7 @@ override_dh_auto_clean:
gradle clean $(GRADLE_FLAGS)
rm -rf debian/gradle.1
rm -rf .gradle .gradlehome buildSrc/.gradle buildSrc/build
+ rm -rf debian/*.pom
override_dh_install:
dh_install
@@ -38,6 +39,9 @@ override_dh_install:
rm debian/gradle-doc/usr/share/doc/gradle/groovydoc/org/gradle/api/distribution/Distribution.html
rm debian/gradle-doc/usr/share/doc/gradle/groovydoc/org/gradle/api/initialization/Settings.html
+override_mh_linkjars:
+ mh_linkjars
+
get-orig-source:
uscan --download-current-version --force-download --repack --compression xz
--
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