[groovy] 01/01: d/rules: Support Gradle parallel building

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Thu Oct 8 02:04:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

seamlik-guest pushed a commit to branch master
in repository groovy.

commit 4cbc3a1c22882454696f1c9b7510d203d253a2a1
Author: Kai-Chung Yan <seamlikok at gmail.com>
Date:   Thu Oct 8 10:01:15 2015 +0800

    d/rules: Support Gradle parallel building
---
 debian/changelog | 4 ++++
 debian/control   | 4 ++--
 debian/rules     | 6 ++++++
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 103a561..82fb2fb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,10 @@ groovy (2.4.5-1) UNRELEASED; urgency=medium
   * Rename the package back to groovy
   * Add myself to Uploaders
   * Simplify get-orig-source mechanism
+  * d/control:
+    - Build-Depends on gradle (>= 2.7)
+  * d/rules:
+    - Support Gradle parallel building
 
  -- Kai-Chung Yan <seamlikok at gmail.com>  Sat, 03 Oct 2015 10:57:26 +0800
 
diff --git a/debian/control b/debian/control
index 7ebfc92..3f1a8ed 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.or
 Uploaders: Miguel Landaeta <nomadium at debian.org>,
            Kai-Chung Yan <seamlikok at gmail.com>
 Build-Depends: debhelper (>= 9)
-Build-Depends-Indep: default-jdk, gradle (>= 1.4~), ant, ant-optional,
+Build-Depends-Indep: default-jdk, gradle (>= 2.7), ant, ant-optional,
  maven-repo-helper, libasm4-java, libbsf-java, libcommons-cli-java,
  libcommons-logging-java, junit4, libservlet2.5-java, libxstream-java,
  libjline2-java, antlr, ivy, libqdox-java, libjansi-java, unzip,
@@ -38,7 +38,7 @@ Description: Agile dynamic language for the Java Virtual Machine
  Groovy can be used as an alternative compiler to javac to generate
  standard Java bytecode to be used by any Java project or it can be used
  dynamically as an alternative language such as for scripting Java objects,
- templating or writing unit test cases. 
+ templating or writing unit test cases.
 
 Package: groovy-doc
 Section: doc
diff --git a/debian/rules b/debian/rules
index 3831a1c..3df4a5e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,12 @@ UVERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/+dfsg//')
 MAVEN_REPO_URL := http://repo1.maven.org/maven2/
 MODULES := docgenerator servlet ant groovydoc xml swing sql jmx test console groovysh json testng jsr223 templates bsf
 
+# Support for DEB_BUILD_OPTIONS parallel=n
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	NUMTHREADS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	DEB_GRADLE_OPTS += --parallel --max-workers=$(NUMTHREADS)
+endif
+
 %:
 	dh $@
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/groovy.git



More information about the pkg-java-commits mailing list