forked from getsentry/sentry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 958 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 958 Bytes
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
.PHONY: clean compile dryRelease doRelease release update stop
all: clean compile update dryRelease
# deep clean
clean:
./gradlew clean cleanBuildCache
# build and run tests
compile:
./gradlew build
# do a dry release (like a local deploy)
dryRelease:
./gradlew bintrayUpload -PbintrayUser=dryUser -PbintrayKey=dryKey
# deploy the current build to bintray, jcenter and maven central
doRelease:
./gradlew bintrayUpload -PbintrayUser="$(BINTRAY_USERNAME)" -PbintrayKey="$(BINTRAY_KEY)" -PmavenCentralUser="$(MAVEN_USER)" -PmavenCentralPassword="$(MAVEN_PASS)" -PmavenCentralSync=true -PdryRun=false --info
# deep clean, build and deploy to bintray, jcenter and maven central
release: clean compile dryRelease doRelease
# check for dependencies update
update:
./gradlew dependencyUpdates -Drevision=release
# We stop gradle at the end to make sure the cache folders
# don't contain any lock files and are free to be cached.
stop:
./gradlew --stop