#!/usr/bin/make -f

export CLASSPATH = /usr/share/java/gson.jar

JAR := org.eclipse.lsp4j.jsonrpc.jar
MOD := org.eclipse.lsp4j.jsonrpc

%:
	dh $@

override_jh_build:
	jh_build --no-javadoc --javacopts='--release 11 -encoding UTF-8' \
		$(JAR) $(MOD)/src/main/java

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	debian/tests/run-junit $(CURDIR)/$(JAR)
endif
