Skip to content

Commit 48a76f8

Browse files
committed
Fixed Gradle task publish to publish all modules and announce publication to central.sonatype.com
1 parent e3cd3a6 commit 48a76f8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ allprojects {
3737
}
3838
}
3939

40-
tasks.register("publishToMavenCentral", Exec) {
41-
// subprojects.each { dependsOn("${it.name}:publish") }
40+
tasks.register("publish", Exec) {
41+
subprojects.each { dependsOn("${it.name}:publish") }
4242
group = "Publishing"
4343
description = "Publishes all publications in this project " +
4444
"and announces publication to central.sonatype.com."

signalPublishToCentralSonatype.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
2+
#set -x
23
token=$1
3-
echo "Posting new deployment to ossrh-staging.api.central"
4+
echo "Posting new deployment to ossrh-staging-api.central"
45
curl -X 'POST' \
56
'https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/net.jqwik' \
67
-H 'accept: application/json' \
7-
-H 'Authorization: $token'
8+
-H "Authorization: Bearer $token"

0 commit comments

Comments
 (0)