forked from talon-one/TalonOneJavaSdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 841 Bytes
/
Makefile
File metadata and controls
32 lines (27 loc) · 841 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
VERSION=$(shell grep -om1 -E '<version>[0-9\.]+</version>' pom.xml | head -n 1 | sed 's/<version>\(.*\)<\/version>/\1/')
DIST=target/dist
clean:
rm -rf target
build: clean
docker run \
--rm \
-v "$$(PWD)":/tmp/talon-client \
-w "/tmp/talon-client" \
maven:3.5.2-jdk-9-slim \
/bin/bash -c "mvn clean install && \
cp ~/.m2/repository/one/talon/talon-one-client/$(VERSION)/_remote.repositories target"
bundle:
rm -rf $(DIST) && \
mkdir $(DIST) && \
cp pom.xml $(DIST)/talon-one-client-$(VERSION).pom && \
cp target/_remote.repositories $(DIST) && \
cp target/talon-one-client-$(VERSION)-sources.jar $(DIST) && \
cp target/talon-one-client-$(VERSION).jar $(DIST)
prepare: build bundle
testenv:
docker run \
--rm -it \
-v $(PWD):/tmp/talon-client \
-w "/tmp/talon-client" \
maven:3.5.2-jdk-9-slim \
/bin/bash