-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (29 loc) · 921 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
CURRENT_BUILD=$(shell scripts/set_build_number.sh)
help:
@echo "make -s test - run unit tests"
@echo "make -s version-get - Displays the current version number by extracting it from the CHANGELOG.md"
@echo "make -s version-set - display the current artifact version"
@echo "make -s version-commit - Deletes the version backup file."
@echo "make -s clean - delete generated files"
@echo "make -s verify - run tests and check javadocs"
@echo "make -s release - release to maven central"
@echo "-s option hides the Make invocation command (@echo)."
clean:
mvn clean
rm -rf target/
rm -rf bin/
build:
mvn package
test:
mvn test
version-get:
./scripts/set_build_number.sh
version-set:
mvn versions:set -DnewVersion=${CURRENT_BUILD}
version-commit:
mvn versions:commit
verify:
mvn verify
release:
mvn clean deploy -P release
.PHONY: help test init clean run version-set version-get release verify