-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
34 lines (25 loc) · 973 Bytes
/
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
LATEST_TAG ?= `git tag | grep -E '^v?[0-9]+(\.[0-9]+)*(-[a-zA-Z]+[0-9]*)?$' | sort -V | tail -1`
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BUILD_DIR := ${PROJECT_DIR}/build
help:
cat Makefile.txt
clean:
./gradlew clean
.PHONY: build
build:
${PROJECT_DIR}/gradlew build --warning-mode all
version:
./gradlew currentVersion --warning-mode all
release:
./gradlew release --warning-mode all
publish-local: build
rm -rf $$HOME/.m2/repository/org/docstr/gwt
${PROJECT_DIR}/gradlew publishToMavenLocal --warning-mode all
publish-maven: build
rm -rf $$HOME/.m2/repository/org/docstr/gwt
${PROJECT_DIR}/gradlew publishMavenJavaPublicationToMavenLocal publishMavenJavaPublicationToMavenRepository
publish: build
rm -rf $$HOME/.m2/repository/org/docstr/gwt
${PROJECT_DIR}/gradlew publishPlugins --warning-mode all
site:
cd ${PROJECT_DIR}/doc && docstr site build && cd ${PROJECT_DIR}/../dn-hosting-sites && make deploy-gwtgradle