2018-10-08 09:36:20 +00:00
|
|
|
# git-bridge makefile
|
|
|
|
|
2022-07-27 10:35:33 +00:00
|
|
|
MVN_OPTS := --no-transfer-progress
|
|
|
|
MVN_TARGET := target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar
|
2018-10-15 10:06:18 +00:00
|
|
|
|
2021-05-07 08:44:29 +00:00
|
|
|
runtime-conf:
|
|
|
|
/opt/envsubst < conf/envsubst_template.json > conf/runtime.json
|
|
|
|
|
|
|
|
|
2022-07-27 10:35:33 +00:00
|
|
|
run: $(MVN_TARGET) runtime-conf
|
|
|
|
java $(GIT_BRIDGE_JVM_ARGS) -jar $(MVN_TARGET) conf/runtime.json
|
2018-10-08 09:36:20 +00:00
|
|
|
|
|
|
|
|
2022-08-02 12:01:01 +00:00
|
|
|
$(MVN_TARGET): $(shell find src -type f) pom.xml
|
2021-01-04 10:11:18 +00:00
|
|
|
mvn $(MVN_OPTS) package -DskipTests
|
2018-10-08 09:36:20 +00:00
|
|
|
|
2022-08-02 12:01:01 +00:00
|
|
|
build: $(MVN_TARGET)
|
2018-10-08 09:36:20 +00:00
|
|
|
|
2024-06-14 10:42:59 +00:00
|
|
|
|
|
|
|
format:
|
|
|
|
mvn $(MVN_OPTS) com.spotify.fmt:fmt-maven-plugin:check
|
|
|
|
|
|
|
|
|
|
|
|
format_fix:
|
|
|
|
mvn $(MVN_OPTS) com.spotify.fmt:fmt-maven-plugin:format
|
|
|
|
|
|
|
|
|
2018-10-08 09:36:20 +00:00
|
|
|
test:
|
2021-01-04 10:11:18 +00:00
|
|
|
mvn $(MVN_OPTS) test
|
2018-10-08 09:36:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2021-01-04 10:11:18 +00:00
|
|
|
mvn $(MVN_OPTS) clean
|
2018-10-08 09:36:20 +00:00
|
|
|
|
|
|
|
|
2019-03-06 11:41:59 +00:00
|
|
|
package: clean
|
2021-01-04 10:11:18 +00:00
|
|
|
mvn $(MVN_OPTS) package -DskipTests
|
2018-10-08 09:36:20 +00:00
|
|
|
|
|
|
|
|
2022-08-02 12:01:01 +00:00
|
|
|
.PHONY: run package build clean test runtime-conf
|