forked from getsentry/sentry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (36 loc) · 1.04 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: all clean compile dryRelease doRelease release update stop checkFormat format api
all: stop clean checkFormat compile dryRelease
# deep clean
clean:
./gradlew clean
# build and run tests
compile:
./gradlew build
# do a dry release (like a local deploy)
dryRelease:
./gradlew publishToMavenLocal --no-daemon
# deploy the current build to maven central
# promotes the release to maven central
doRelease:
cd scripts
kotlinc -script release.kts -- -d ../distributions | sh
cd ..
./gradlew closeAndReleaseRepository
# clean, build, deploy and promote to maven central
release: clean checkFormat compile 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
# Spotless check's code
checkFormat:
./gradlew spotlessJavaCheck spotlessKotlinCheck
# Spotless format's code
format:
./gradlew spotlessApply
# Binary compatibility validator
api:
./gradlew apiDump