I'm trying to push my project to the using `io.gi...
# gradle
c
I'm trying to push my project to the using
io.github.gradle-nexus.publish-plugin
, but I'm getting the error "No staging repository with name sonatype created." Has anyone here encountered it and figured out how to fix it?
This is the code I'm using:
Copy code
nexusPublishing {
	repositories {
		// see <https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration>
		sonatype {
			nexusUrl.set(uri("<https://ossrh-staging-api.central.sonatype.com/service/local/>"))
			snapshotRepositoryUrl.set(uri("<https://central.sonatype.com/repository/maven-snapshots/>"))
			stagingProfileId.set(MY_NEXUS_ID)
		}
	}
}
I've also tried just
sonatype()
, which sets the default URLs, and it gives the same error.
m
Can you try without the
stagingProfile
bits?
Overall, I'd recommend switching to the new Portal API with Nmcp or Vanniktech, you'll get more support there.
👍 1