Skip to content

Commit c26c5a1

Browse files
committed
Update publish-related make targets
- Replaced publishToSonatype → publishToAppropriateCentralRepository - Removed closeSonatypeStagingRepository (nmcp handles the staging/close flow internally) - Fixed release-minor which had tag before nativeCompile (inconsistent ordering vs other targets) - Updated comment "publish to sonatype and close staging repo" → "publish to maven central"
1 parent 8f372da commit c26c5a1

2 files changed

Lines changed: 13 additions & 21 deletions

File tree

Makefile

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@ docs: ## serve documentation on the localhost
4343
snapshot-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
4949
pre-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
5958
pre-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
6967
pre-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
7976
next-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
8985
promote-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
9994
release-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
109103
release-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
119112
release-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

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ subprojects {
9191
}
9292
}
9393

94-
// Run :tag only after we've published artifacts to sonatype
94+
// Run :tag only after we've published artifacts to Maven Central
9595
tasks.withType<TagTask>().configureEach {
9696
// don't apply when "dryRun"
9797
findProperty("dryRun")

0 commit comments

Comments
 (0)