-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (28 loc) · 1.18 KB
/
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
##@ General
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-30s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
##@ Develop
format: ## Format the source code.
mvn validate -e
clean: ## Remove files generated at build-time.
mvn clean -e
compile: clean ## Clean and compile the source code.
mvn compile -e
test: clean ## Clean and test the compiled code.
mvn test -e
install: clean ## Install project to local repository w/o unit testing.
mvn install -e -DskipTests -Prelease
bump-deps: ## Bump dependencies to the latest version (excluding maven plugin).
mvn versions:update-properties -DexcludeProperties=*plugin.version
mvn versions:commit
##@ Delivery
version: ## Get current project version
@mvn help:evaluate -Dexpression=project.version -DforceStdout -q
new-version: ## Update version.
ifeq ($(strip $(VERSION)),)
$(error VERSION is required)
endif
mvn versions:set -DnewVersion=$(VERSION)
mvn versions:commit
release: ## Pack w/o unit testing, and deploy to remote repository.
mvn clean deploy -e -Prelease -DskipTests