forked from sendgrid/sendgrid-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (18 loc) · 839 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: install package test test-integ test-docker clean
VERSION := $(shell mvn help:evaluate -Dexpression=project.version --batch-mode | grep -e '^[^\[]')
install:
@java -version || (echo "Java is not installed, please install Java >= 7"; exit 1);
mvn clean install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B
cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar
package:
mvn package -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B
cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar
test:
mvn test spotbugs:spotbugs checkstyle:check -Dcheckstyle.config.location=google_checks.xml
test-integ: test
version ?= latest
test-docker:
curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism.sh -o prism.sh
version=$(version) bash ./prism.sh
clean:
mvn clean