[gradle-propdeps-plugin] 01/02: Initial packaging
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Wed Nov 26 23:56:39 GMT 2014
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository gradle-propdeps-plugin.
commit 0b8096e3de2bbe405f9ccc3206d08351dafeb672
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Thu Nov 27 00:54:12 2014 +0100
Initial packaging
---
debian/changelog | 5 ++
debian/compat | 1 +
debian/control | 17 +++++
debian/copyright | 16 ++++
debian/orig-tar.sh | 25 +++++++
debian/patches/01-disable-modules.patch | 86 ++++++++++++++++++++++
.../patches/02-ignore-build-info-extractor.patch | 52 +++++++++++++
debian/patches/03-use-local-repository.patch | 13 ++++
.../patches/04-groovy-compiler-dependencies.patch | 14 ++++
debian/patches/series | 4 +
debian/pom.xml | 8 ++
debian/rules | 25 +++++++
debian/source/format | 1 +
debian/watch | 2 +
14 files changed, 269 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a66f3db
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+gradle-propdeps-plugin (0.0.7-1) unstable; urgency=medium
+
+ * Initial release. (Closes: #771124)
+
+ -- Emmanuel Bourg <ebourg at apache.org> Wed, 26 Nov 2014 21:11:28 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..21381cc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: gradle-propdeps-plugin
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: debhelper (>= 9), gradle, default-jdk, maven-repo-helper
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/gradle-propdeps-plugin.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-java/gradle-propdeps-plugin.git
+Homepage: https://github.com/spring-projects/gradle-plugins
+
+Package: gradle-propdeps-plugin
+Architecture: all
+Depends: ${misc:Depends}
+Description: Gradle plugin enhancing the Maven integration
+ The propdeps plugin provides additional optional and provided dependency
+ configurations for Gradle along with Maven POM generation support.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f49d78f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Gradle propdeps plugin
+Source: https://github.com/spring-projects/gradle-plugins/tree/master/propdeps-plugin
+
+Files: *
+Copyright: 2012-2013, Phillip Webb
+ 2014, Brian Clozel
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2014, Emmanuel Bourg <ebourg at apache.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian systems the full text of the Apache License can be found
+ in the `/usr/share/common-licenses/Apache-2.0' file.
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..d5a338d
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+VERSION=$2
+DIR=gradle-propdeps-plugin-$VERSION
+TAR=../gradle-propdeps-plugin_$VERSION.orig.tar.xz
+
+mkdir $DIR
+tar -xf $3 --strip-components=1 -C $DIR
+rm $3
+XZ_OPT=--best tar cJvf $TAR \
+ --exclude '*.jar' \
+ --exclude '*.class' \
+ --exclude '.settings' \
+ --exclude '.project' \
+ --exclude '.classpath' \
+ --exclude 'gradlew*' \
+ --exclude 'gradle/wrapper' \
+ --exclude 'bundlor-plugin' \
+ --exclude 'docbook-reference-plugin' \
+ --exclude '.wrapper' \
+ --exclude 'wrapper.gradle' \
+ --exclude 'spring-io-plugin' \
+ $DIR
+rm -rf $DIR
diff --git a/debian/patches/01-disable-modules.patch b/debian/patches/01-disable-modules.patch
new file mode 100644
index 0000000..de15c68
--- /dev/null
+++ b/debian/patches/01-disable-modules.patch
@@ -0,0 +1,86 @@
+Description: Build only the propdeps-plugin module
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/settings.gradle
++++ b/settings.gradle
+@@ -1,6 +1,3 @@
+ rootProject.name = 'gradle-plugins'
+
+-include 'bundlor-plugin'
+-include 'docbook-reference-plugin'
+ include 'propdeps-plugin'
+-include 'spring-io-plugin'
+\ No newline at end of file
+--- a/build.gradle
++++ b/build.gradle
+@@ -29,70 +29,6 @@
+ }
+ }
+
+-project(':spring-io-plugin') {
+- version = springIoPluginVersion
+-
+- dependencies {
+- testCompile 'org.spockframework:spock-core:0.7-groovy-1.8'
+- }
+-}
+-
+-project(':bundlor-plugin') {
+- version = bundlorPluginVersion
+- // dependencies are configured within BundlorPlugin
+-}
+-
+-project(':docbook-reference-plugin') {
+- version = docbookPluginVersion
+- dependencies {
+- compile 'net.sf.docbook:docbook-xsl:1.75.2:resources at zip'
+- compile 'net.sf.docbook:docbook-xml:5.0:xsd-resources at zip'
+- compile 'net.sf.docbook:docbook-xsl-saxon:1.0.0'
+- compile 'org.apache.xerces:resolver:2.9.1'
+- compile 'org.apache.xerces:xercesImpl:2.9.1'
+- compile 'saxon:saxon:6.5.3'
+- compile 'net.sf.xslthl:xslthl:2.0.1'
+- compile 'org.apache.xmlgraphics:fop:0.95-1 at jar'
+- compile 'org.apache.xmlgraphics:xmlgraphics-commons:1.3'
+- compile 'org.apache.xmlgraphics:batik-bridge:1.7 at jar'
+- compile 'org.apache.xmlgraphics:batik-util:1.7 at jar'
+- compile 'org.apache.xmlgraphics:batik-css:1.7 at jar'
+- compile 'org.apache.xmlgraphics:batik-dom:1.7'
+- compile 'org.apache.xmlgraphics:batik-svg-dom:1.7 at jar'
+- compile 'org.apache.avalon.framework:avalon-framework-api:4.3.1'
+- }
+-
+- task copyDocbookResources {
+- outputs.dir "${project.buildDir}/docbook"
+-
+- doLast() {
+- def docbookZip = configurations.compile.files.find { file -> file.name.contains('docbook-xsl-')};
+-
+- copy { // copy all images and highlighting files from docbook dist
+- from zipTree(docbookZip)
+- include 'docbook/images/**'
+- include 'docbook/highlighting/**'
+- into project.buildDir
+- }
+-
+- copy { // copy docbook resources from src/main
+- from 'src/main/docbook'
+- into "${project.buildDir}/docbook"
+- }
+- }
+- }
+-
+-
+- task docbookResourcesZip(type: Zip, dependsOn: copyDocbookResources) {
+- from copyDocbookResources.outputs.files
+- destinationDir = new File(project.sourceSets.main.output.classesDir, "META-INF")
+- archiveName = 'docbook-resources.zip'
+- }
+-
+- jar.dependsOn docbookResourcesZip
+-}
+-
+-
+ ext.repoUser = project.properties['REPO_USERNAME']
+ ext.repoPass = project.properties['REPO_PASSWORD']
+
diff --git a/debian/patches/02-ignore-build-info-extractor.patch b/debian/patches/02-ignore-build-info-extractor.patch
new file mode 100644
index 0000000..b33d2cb
--- /dev/null
+++ b/debian/patches/02-ignore-build-info-extractor.patch
@@ -0,0 +1,52 @@
+Description: Ignore the dependency on org.jfrog.buildinfo:build-info-extractor-gradle
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/build.gradle
++++ b/build.gradle
+@@ -2,9 +2,6 @@
+ repositories {
+ maven { url 'https://repo.spring.io/plugins-release' }
+ }
+- dependencies {
+- classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:2.2.2'
+- }
+ }
+
+ allprojects {
+@@ -15,7 +12,6 @@
+ subprojects {
+ apply plugin: 'groovy'
+ apply plugin: 'maven'
+- apply plugin: 'artifactory'
+
+ group = 'org.springframework.build.gradle'
+
+@@ -40,28 +36,6 @@
+ }
+ }
+
+-artifactory {
+- contextUrl = 'https://repo.spring.io'
+- publish {
+- repository {
+- repoKey = 'plugins-snapshot-local'
+- username = repoUser
+- password = repoPass
+- }
+- defaults {
+- publishConfigs('archives')
+- }
+- }
+- resolve {
+- repository {
+- repoKey = 'libs-releases'
+- username = repoUser
+- password = repoPass
+- maven = true
+- }
+- }
+-}
+-
+ task wrapper(type: Wrapper) {
+ description = 'Generates gradlew[.bat] scripts'
+ gradleVersion = '1.11'
diff --git a/debian/patches/03-use-local-repository.patch b/debian/patches/03-use-local-repository.patch
new file mode 100644
index 0000000..7299875
--- /dev/null
+++ b/debian/patches/03-use-local-repository.patch
@@ -0,0 +1,13 @@
+Description: Fetch the dependencies from the system Maven repository
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/build.gradle
++++ b/build.gradle
+@@ -17,6 +17,7 @@
+
+ repositories {
+ maven { url 'https://repo.spring.io/libs-release' }
++ maven { url 'file://usr/share/maven-repo' }
+ }
+
+ dependencies {
diff --git a/debian/patches/04-groovy-compiler-dependencies.patch b/debian/patches/04-groovy-compiler-dependencies.patch
new file mode 100644
index 0000000..cd95733
--- /dev/null
+++ b/debian/patches/04-groovy-compiler-dependencies.patch
@@ -0,0 +1,14 @@
+Description: Add an explicit dependency on Groovy to be able to compile the .groovy files
+ (why is this needed exactly?)
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/build.gradle
++++ b/build.gradle
+@@ -21,6 +21,7 @@
+ }
+
+ dependencies {
++ compile 'org.codehaus.groovy:groovy-all:1.x'
+ compile gradleApi()
+ compile localGroovy()
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..228efe0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+01-disable-modules.patch
+02-ignore-build-info-extractor.patch
+03-use-local-repository.patch
+04-groovy-compiler-dependencies.patch
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..a7ea795
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.springframework.build.gradle</groupId>
+ <artifactId>propdeps-plugin</artifactId>
+ <version>0.0.7</version>
+</project>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..83301ae
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+JAVA_HOME := /usr/lib/jvm/default-java
+VERSION = $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ dh_auto_build
+ gradle --offline --stacktrace --refresh-dependencies --gradle-user-home .gradle jar
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -Rf build .gradle buildSrc/.gradle/ buildSrc/build/
+ rm -Rf propdeps-plugin/build
+ mh_clean
+
+override_dh_auto_install:
+ dh_auto_install
+ mh_installpom -pgradle-propdeps-plugin --has-package-version -e$(VERSION) debian/pom.xml
+ mh_installjar -pgradle-propdeps-plugin -e$(VERSION) debian/pom.xml propdeps-plugin/build/libs/propdeps-plugin-$(VERSION).jar
+
+get-orig-source:
+ uscan --download-current-version --rename --force-download
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3077b27
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/spring-projects/gradle-plugins/tags .*/propdeps-plugin-([\d\.]+).tar.gz debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/gradle-propdeps-plugin.git
More information about the pkg-java-commits
mailing list