@@ -43,14 +43,13 @@ docs: ## serve documentation on the localhost
4343snapshot-minor : # # publishes next snapshot with a minor version bump
4444 ./gradlew clean test spotlessCheck
4545 ./gradlew nativeCompile
46- ./gradlew publishToSonatype --info
46+ ./gradlew publishToAppropriateCentralRepository --info
4747
4848.PHONY : pre-release-major
4949pre-release-major : # # publishes next pre-release version with a major version bump
5050 ./gradlew test spotlessCheck \
5151 nativeCompile \
52- publishToSonatype \
53- closeSonatypeStagingRepository \
52+ publishToAppropriateCentralRepository \
5453 tag \
5554 -Prelease -PpreRelease -Pincrement=major \
5655 --info
@@ -59,8 +58,7 @@ pre-release-major: ## publishes next pre-release version with a major version bu
5958pre-release-minor : # # publishes next pre-release with a minor version bump
6059 ./gradlew test spotlessCheck \
6160 nativeCompile \
62- publishToSonatype \
63- closeSonatypeStagingRepository \
61+ publishToAppropriateCentralRepository \
6462 tag \
6563 -Prelease -PpreRelease -Pincrement=minor \
6664 --info
@@ -69,8 +67,7 @@ pre-release-minor: ## publishes next pre-release with a minor version bump
6967pre-release-patch : # # publishes next pre-release with a patch version bump
7068 ./gradlew test spotlessCheck \
7169 nativeCompile \
72- publishToSonatype \
73- closeSonatypeStagingRepository \
70+ publishToAppropriateCentralRepository \
7471 tag \
7572 -Prelease -PpreRelease -Pincrement=patch \
7673 --info
@@ -79,8 +76,7 @@ pre-release-patch: ## publishes next pre-release with a patch version bump
7976next-pre-release : # # publishes next pre-release version
8077 ./gradlew test spotlessCheck \
8178 nativeCompile \
82- publishToSonatype \
83- closeSonatypeStagingRepository \
79+ publishToAppropriateCentralRepository \
8480 tag \
8581 -Prelease -Pincrement=pre_release \
8682 --info
@@ -89,8 +85,7 @@ next-pre-release: ## publishes next pre-release version
8985promote-to-release : # # publishes next release from the current pre-release version
9086 ./gradlew test spotlessCheck \
9187 nativeCompile \
92- publishToSonatype \
93- closeSonatypeStagingRepository \
88+ publishToAppropriateCentralRepository \
9489 tag \
9590 -Prelease -PpromoteRelease \
9691 --info
@@ -99,28 +94,25 @@ promote-to-release: ## publishes next release from the current pre-release versi
9994release-major : # # publishes next major release version
10095 ./gradlew test spotlessCheck \
10196 nativeCompile \
102- publishToSonatype \
103- closeSonatypeStagingRepository \
97+ publishToAppropriateCentralRepository \
10498 tag \
10599 -Prelease -Pincrement=major \
106100 --info
107101
108102.PHONY : release-minor
109103release-minor : # # publishes next minor release version
110104 ./gradlew test spotlessCheck \
111- tag \
112105 nativeCompile \
113- publishToSonatype \
114- closeSonatypeStagingRepository \
106+ publishToAppropriateCentralRepository \
107+ tag \
115108 -Prelease -Pincrement=minor \
116109 --info
117110
118111.PHONY : release-patch
119112release-patch : # # publishes next patch release version
120113 ./gradlew test spotlessCheck \
121114 nativeCompile \
122- publishToSonatype \
123- closeSonatypeStagingRepository \
115+ publishToAppropriateCentralRepository \
124116 tag \
125117 -Prelease -Pincrement=patch \
126118 --info
@@ -135,8 +127,8 @@ release: check_java ## publishes the next release with a specified VERSION
135127 ./gradlew nativeCompile -Pversion=$(VERSION) --info
136128 ./cli-bot/build/native/nativeCompile/faker-bot_$(VERSION) list --verbose >/dev/null || false
137129 ./cli-bot/build/native/nativeCompile/faker-bot_$(VERSION) lookup a --verbose >/dev/null || false
138- # publish to sonatype and close staging repo
139- ./gradlew publishToSonatype closeSonatypeStagingRepository -Pversion=$(VERSION) --info
130+ # publish to maven central
131+ ./gradlew publishToAppropriateCentralRepository -Pversion=$(VERSION) --info
140132 # create and push git tag
141133 git tag v$(VERSION)
142134
0 commit comments