Skip to content

Instantly share code, notes, and snippets.

@vvb2060
Last active June 28, 2023 09:08
Show Gist options
  • Save vvb2060/7375953b16fd41abdcf2a76363dfaaf4 to your computer and use it in GitHub Desktop.
Save vvb2060/7375953b16fd41abdcf2a76363dfaaf4 to your computer and use it in GitHub Desktop.
Maven Central Staging API
GET https://s01.oss.sonatype.org/service/local/staging/profile_repositories
Accept: application/xml
Authorization: basic {{basic}}
###
POST https://s01.oss.sonatype.org/service/local/staging/bulk/close
Accept: application/json
Content-Type: application/json
Authorization: basic {{basic}}
{
"data":{
"stagedRepositoryIds":[
"abc-001"
],
"description":"Close abc 1.2.3."
}
}
###
GET https://s01.oss.sonatype.org/service/local/staging/repository/abc-001
Accept: application/xml
Authorization: basic {{basic}}
###
POST https://s01.oss.sonatype.org/service/local/staging/bulk/promote
accept: application/json
content-type: application/json
authorization: basic {{basic}}
{
"data":{
"stagedRepositoryIds":[
"abc-001"
],
"autoDropAfterRelease":true,
"description":"Release abc 1.2.3."
}
}
###
POST https://s01.oss.sonatype.org/service/local/staging/bulk/drop
accept: application/json
content-type: application/json
authorization: basic {{basic}}
{
"data":{
"stagedRepositoryIds":[
"abc-001"
],
"description":"Drop abc 1.2.3."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment