File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,11 @@ allprojects {
3636 inputs. property(" ENV:TZ" , providers. environmentVariable(" TZ" )). optional(true )
3737 }
3838}
39+
40+ tasks. register(" publishToMavenCentral" , Exec ) {
41+ // subprojects.each { dependsOn("${it.name}:publish") }
42+ group = " Publishing"
43+ description = " Publishes all publications in this project " +
44+ " and announces publication to central.sonatype.com."
45+ commandLine ' ./signalPublishToCentralSonatype.sh' , project. portalTokenBase64
46+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ token=$1
3+ echo " Posting new deployment to ossrh-staging.api.central"
4+ curl -X ' POST' \
5+ ' https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/net.jqwik' \
6+ -H ' accept: application/json' \
7+ -H ' Authorization: $token'
You can’t perform that action at this time.
0 commit comments