#!/usr/bin/make -f

export DH_VERBOSE=1
export DH_OPTIONS

export ANT_HOME=/usr/share/ant
export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")

%:
	dh  $@ --buildsystem=gradle --with javahelper,jh_maven_repo_helper

override_dh_auto_build:
	dh_auto_build -- jar javadoc

override_dh_auto_test:
	# Tests do not work with locales with a different decimal separator
	# (for example ',') 
	env LC_ALL=C && \
	dh_auto_build -- test
