forked from lightstep/lightstep-tracer-java-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (22 loc) · 1016 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
.PHONY: build publish ci_test clean test inc-version
build: test
mvn package
clean:
mvn clean
test: ci_test
# CircleCI test
ci_test: clean
mvn test
# Needed only in CircleCI to FORCE the help plugin to be installed (resolve-plugins is NOT enough).
resolve_plugins:
mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version
# If no version is specified, the minor version will be automatically increased.
inc-version:
./inc-version.sh $(NEW_VERSION)
publish: build resolve_plugins
@test -n "$$SONATYPE_USERNAME" || (echo "SONATYPE_USERNAME must be defined to publish" && false)
@test -n "$$SONATYPE_PASSWORD" || (echo "SONATYPE_PASSWORD must be defined to publish" && false)
@test -n "$$GPG_KEY_NAME" || (echo "GPG_KEY_NAME must be defined to publish" && false)
@test -n "$$GPG_SECRET_KEY" || (echo "GPG_SECRET_KEY must be defined to publish" && false)
@git diff-index --quiet HEAD || (echo "git has uncommitted changes. Refusing to publish." && false)
./deploy.sh