-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (37 loc) · 2.33 KB
/
Makefile
File metadata and controls
52 lines (37 loc) · 2.33 KB
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
42
43
44
45
46
47
48
49
50
51
52
DEBUG := false
ifeq ($(strip $(DEBUG)),true)
DEBUG_FLAG := --debug -Dmaven.plugin.validation=VERBOSE
endif
show-plugins-updates: ## show which plugins versions are not set or outdated
mvn -T1 -s .mvn/settings.xml versions:display-plugin-updates
show-dependencies-updates: ## show which dependencies versions can be updated, but do not touch transitive version which comes with Spring Boot
mvn -T1 -s .mvn/settings.xml versions:display-dependency-updates
mvn -T1 -s .mvn/settings.xml versions:display-property-updates
show-dependency-tree: ## show Maven dependency tree
mvn -s .mvn/settings.xml dependency:tree
show-dependency-resolve: ## show Maven dependencies versions
mvn -s .mvn/settings.xml dependency:resolve
show-effective-pom: ## show Maven effective pom
mvn -s .mvn/settings.xml help:effective-pom
show-enforcer-info: ## show Maven enforcer plugin display info
mvn -T1 -s .mvn/settings.xml enforcer:display-info
show-modules-dependencies: ## show java modules dependencies
mvn -T1 -s .mvn/settings.xml clean compile test-compile jdeps:jdkinternals jdeps:test-jdkinternals
build: ## builds the project
mvn -s .mvn/settings.xml --show-version $(DEBUG_FLAG) clean install
sbuild: ## builds the project with security OWASP dependency check and SpotBugs analysis
mvn -s .mvn/settings.xml --show-version $(DEBUG_FLAG) clean install -Pcheck
build-native: ## builds the project with GraalVM SpringBoot support
mvn -s .mvn/settings.xml --show-version $(DEBUG_FLAG) clean install -Pnative
build-fast: ## builds the project w/o compiling and running tests
mvn -s .mvn/settings.xml --show-version $(DEBUG_FLAG) clean install -PskipTests
build-submodule: ## build submodule; usage make build-submodule MODULE=mavenModule [DEBUG=false]
# -am added to allow running submodule with enforcer plugin under Maven 3
# https://issues.apache.org/jira/browse/MENFORCER-189
mvn -s .mvn/settings.xml --show-version -am $(DEBUG_FLAG) -pl :$(MODULE) clean install -Pnative
clean: ## builds the project
mvn -s .mvn/settings.xml --show-version $(DEBUG_FLAG) clean
help: ## show usage and tasks (default)
@eval $$(sed -E -n 's/^([\*\.a-zA-Z0-9_-]+):.*?## (.*)$$/printf "\\033[36m%-30s\\033[0m %s\\n" "\1" "\2" ;/; ta; b; :a p' $(MAKEFILE_LIST))
.DEFAULT_GOAL := help
.PHONY: help build show-dependencies-updates show-dependency-tree show-effective-pom show-plugins-updates