-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 798 Bytes
/
Makefile
File metadata and controls
26 lines (19 loc) · 798 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
VERSION?=$(shell grep '<version' pom.xml | cut -f2 -d">"| cut -f1 -d"<" | head -n 1)
help:
@echo "usage: make TARGET"
@echo " release - prepare a release for Github"
@echo " package - create jar"
package: target/log4j-plugin-fluency-${VERSION}-jar-with-dependencies.jar
target/log4j-plugin-fluency-${VERSION}-jar-with-dependencies.jar:
mvn clean
mvn dependency:resolve
mvn package -Dmaven.test.skip=true
clean:
-rm -rf target/*
-rm -rf release/*
release: target/log4j-plugin-fluency-${VERSION}-jar-with-dependencies.jar
-mkdir release
cp target/log4j-plugin-fluency-${VERSION}-jar-with-dependencies.jar release/
deploy: target/log4j-plugin-fluency-${VERSION}-jar-with-dependencies.jar
mvn clean deploy
.PHONY: package clean release deploy