forked from ExpediaGroup/stream-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (24 loc) · 1.13 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
# run 'STREAM_REGISTRY_DEBUG_SUSPEND=y make debug' in order to enable suspend
STREAM_REGISTRY_DEBUG_SUSPEND ?= n
STREAM_REGISTRY_DEBUG_PORT ?= 5105
STREAM_REGISTRY_HEAP_OPTS ?= -Xmx2g
STREAM_REGISTRY_JAVA_OPTS = $(STREAM_REGISTRY_HEAP_OPTS) --add-opens java.base/java.lang=ALL-UNNAMED -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.headless=true
STREAM_REGISTRY_DEBUG_OPTS = $(STREAM_REGISTRY_JAVA_OPTS) --add-opens java.base/java.lang=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=$(STREAM_REGISTRY_DEBUG_SUSPEND),address=$(STREAM_REGISTRY_DEBUG_PORT)
.PHONY: clean tests build build-docker run debug all just-deploy deploy ci-setup ci-deploy
clean:
./mvnw clean
tests:
./mvnw clean test -B
build:
./mvnw clean install -B
build-docker:
./mvnw -Pdocker clean package -B
run:
MAVEN_OPTS="$(STREAM_REGISTRY_JAVA_OPTS)" ./mvnw exec:java
debug:
MAVEN_OPTS="$(STREAM_REGISTRY_DEBUG_OPTS)" ./mvnw exec:java
all: build
# invoke -Psigned profile for signing artifacts
just-deploy:
./mvnw deploy -DskipTests=true -Psigned -B
deploy: all just-deploy