mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 20:43:41 -05:00
da5846209f
* [git-bridge] Extracted pom versions to properties Managing versions as properties is a best practice with pom files. An advantage in our case is ensuring dependency groups (as simpleclient) are upgraded together. * [git-bridge] Remove '_' as keyword * [git-bridge] Added formatting with 'fmt-maven-plugin' * Remove java from .editorconfig No longer needed as a formatter is now available * Replace javadoc comments with multiline comments Replaces "/**" with "/*", which then prevents the formatter from adding HTML elements to comments * [git-bridge] Formatted .java files GitOrigin-RevId: 0997b838cee88c290d824a74444295e26392f26b
40 lines
735 B
Makefile
40 lines
735 B
Makefile
# git-bridge makefile
|
|
|
|
MVN_OPTS := --no-transfer-progress
|
|
MVN_TARGET := target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar
|
|
|
|
runtime-conf:
|
|
/opt/envsubst < conf/envsubst_template.json > conf/runtime.json
|
|
|
|
|
|
run: $(MVN_TARGET) runtime-conf
|
|
java $(GIT_BRIDGE_JVM_ARGS) -jar $(MVN_TARGET) conf/runtime.json
|
|
|
|
|
|
$(MVN_TARGET): $(shell find src -type f) pom.xml
|
|
mvn $(MVN_OPTS) package -DskipTests
|
|
|
|
build: $(MVN_TARGET)
|
|
|
|
|
|
format:
|
|
mvn $(MVN_OPTS) com.spotify.fmt:fmt-maven-plugin:check
|
|
|
|
|
|
format_fix:
|
|
mvn $(MVN_OPTS) com.spotify.fmt:fmt-maven-plugin:format
|
|
|
|
|
|
test:
|
|
mvn $(MVN_OPTS) test
|
|
|
|
|
|
clean:
|
|
mvn $(MVN_OPTS) clean
|
|
|
|
|
|
package: clean
|
|
mvn $(MVN_OPTS) package -DskipTests
|
|
|
|
|
|
.PHONY: run package build clean test runtime-conf
|