-
Notifications
You must be signed in to change notification settings - Fork 409
/
Makefile
27 lines (20 loc) · 946 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
25
26
27
.PHONY: install package test test-integ test-docker update-deps 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-java.sh -o prism.sh
version=$(version) bash ./prism.sh
update-deps:
mvn versions:use-latest-releases versions:commit -DallowMajorUpdates=false
clean:
mvn clean