-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 825 Bytes
/
Makefile
File metadata and controls
40 lines (28 loc) · 825 Bytes
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
default: package
WORKSPACE = $(shell pwd)
THREADS = 2
POM = -f pom.xml
MVN = mvn $(POM)
MVN_REPO ?= $(WORKSPACE)/../maven-repository
MVN_JACOCO=org.jacoco:jacoco-maven-plugin
clean:
$(MVN) clean
check-dependencies:
$(MVN) -N versions:display-dependency-updates
test: clean
$(MVN) -T $(THREADS) test
test-coverage:
$(MVN) -T $(THREADS) $(MVN_JACOCO):prepare-agent install $(MVN_JACOCO):report
sonar:
$(MVN) org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
package: clean
$(MVN) -T $(THREADS) clean package -DskipTests
install: clean
$(MVN) clean install -DskipTests
deploy: clean
$(MVN) clean deploy -DskipTests -DdeployPath=$(MVN_REPO)
release:
$(MVN) release:prepare release:perform
version:
$(MVN) versions:set -DgenerateBackupPoms=false -DnewVersion=$(VERSION)
rm -f **/pom.xml.versionsBackup