-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 1.2 KB
/
Makefile
File metadata and controls
41 lines (30 loc) · 1.2 KB
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
LATEST_TAG?=`git tag|sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -1`
SHELL := /bin/bash
SDK := source "$$HOME/.sdkman/bin/sdkman-init.sh" && sdk env &&
help:
cat Makefile.txt
clean:
$(SDK) ./gradlew clean
pull:
git pull
git submodule update --init --recursive
git submodule foreach git checkout main
git submodule foreach git pull
.PHONY: build
build:
$(SDK) ./gradlew build --warning-mode all
build-fast:
$(SDK) ./gradlew build -Pcheck=false -x test --warning-mode all
release:
$(SDK) ./gradlew release --warning-mode all
publish: build
rm -rf $$HOME/.m2/repository/io/documentnode/epub4j-core
$(SDK) ./gradlew publishToMavenLocal --warning-mode all
publish-remote: publish
$(SDK) ./gradlew publishMavenJavaPublicationToMavenCentralRepository --warning-mode all
publish-central: publish-remote
@echo "Uploading staging repository to Maven Central Portal..."
@curl -X POST \
"https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.documentnode?publishing_type=automatic" \
-H "Authorization: Bearer $$(echo -n "$$SONATYPE_CENTRAL_USERNAME:$$SONATYPE_CENTRAL_PASSWORD" | base64)"
@echo "\nDone. Check https://central.sonatype.com/publishing/deployments for status."