Recently I acquired a domain "cafebabe.one"e; just to reserve a group id for my Java libraries.
The registration process went as smooth as usual.
But it fails with the following message:
./gradlew clean publish > Task :publishMavenJavaPublicationToMavenRepository FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':publishMavenJavaPublicationToMavenRepository'. > Failed to publish publication 'mavenJava' to repository 'maven' > Could not PUT 'https://oss.sonatype.org/service/local/staging/deploy/maven2/one/cafebabe/businessCalendar4j/1.21/businessCalendar4j-1.21.jar'. Received status code 400 from server: Bad Request
It turns out that newly registered group id need to be published to s01.oss.sonatype.org, oss.sonatype.org.
Here is the official announcement from Sonatype.
– New Users on s01.oss.sonatype.org