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