-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish artifact to Maven Central #343
Conversation
without releasing the staging repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you been able to publish to the staging repo with these changes manually yet?
build.gradle.kts
Outdated
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) | ||
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) | ||
username.set(System.getenv("MAVEN_CENTRAL_STAGING_REPO_USER")) | ||
password.set(System.getenv("MAVEN_CENTRAL_STAGING_REPO_PASSWORD")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like if we set the environment variable names in the right way, this will happen automatically: https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
ORG_GRADLE_PROJECT_sonatypeUsername and ORG_GRADLE_PROJECT_sonatypePassword environment variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, seems to work.
@big-guy Yes, I even published all the way to Maven Central: https://search.maven.org/artifact/org.gradle.profiler/gradle-profiler/0.17.0-alpha08/pom Now looking at the pom though, it seems like the packaging is wrong - it says pom. I wonder why. The module file seems to be fine. |
For some reason, the packaging was "pom" for the Gradle profiler artifact.
23f1cf0
to
b2a3717
Compare
@big-guy I fixed the packaging attribute and published version 0.17.0-alpha09 to Maven Central. Can you take another look? |
No description provided.