[bintray-client-java] 06/22: debian/rules

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Thu Jun 4 08:20:02 UTC 2015


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

seamlik-guest pushed a commit to branch master
in repository bintray-client-java.

commit 17a57da8810eccecbc254fe2553f5095d4f75d5d
Author: Kai-Chung Yan <seamlikok at gmail.com>
Date:   Mon Jun 1 14:54:13 2015 +0800

    debian/rules
---
 debian/rules | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/debian/rules b/debian/rules
new file mode 100644
index 0000000..9ef785b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+# Under fakeroot Gradle will show error while creating /root/.gradle, hence
+# specifies the Gradle home location
+GRADLE_FLAGS := --offline --gradle-user-home .gradlehome/
+
+%:
+	dh $@ --with javahelper,quilt
+
+override_dh_auto_build:
+	# Disable tests
+	mv -T impl/src/test/ impl/src/no-test/
+	gradle build $(GRADLE_FLAGS)
+	
+	rm -rf .gradle/ .gradlehome/
+	mv -T impl/src/no-test/ impl/src/test/
+
+override_dh_auto_clean:
+	dh_auto_clean
+	gradle clean $(GRADLE_FLAGS)
+
+	rm -rf .gradle/ .gradlehome/
\ No newline at end of file

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



More information about the pkg-java-commits mailing list