Skip to content
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 snapshots to Sonatype Snapshot repository #17

Closed
wants to merge 2 commits into from

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Jan 3, 2025

Description

Resubmission of #12, closed when I had to delete my repo when this one was flipped private

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
echo "::add-mask::$SONATYPE_USERNAME"
echo "::add-mask::$SONATYPE_PASSWORD"
./gradlew publishMavenJavaPublicationToSnapshotsRepository

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to do: ./gradlew publishPluginZipPublicationToSnapshotsRepository? Ref

ml-commons does the same.

Copy link
Member Author

@dbwiddis dbwiddis Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is not a plugin. It's a JAR file.

The gradle task is mavenJava:

mavenJava(MavenPublication) {

ml-commons also publishes a shadow jar in the same line you linked, as does common-utils which we are logically more similar to.

I wouldn't mind having a shadow vs. normal jar discussion and switching to that later if there's a strong reason to, but that's an extra level of complexity right now and I'm really trying to get this published in some way to unblock plugin work. 2.19.0 code freeze is 25 days away so any unnecessary configuration at this point is risking feature delivery.

@dhrubo-os
Copy link

@opensearch-project/engineering-effectiveness @peterzhuamazon I think you guys need to review the PR too to create the IAM role to fetch the secret according to this

@dbwiddis
Copy link
Member Author

dbwiddis commented Jan 3, 2025

@opensearch-project/engineering-effectiveness @peterzhuamazon I think you guys need to review the PR too to create the IAM role to fetch the secret according to this

It's being tracked separately:

@dbwiddis dbwiddis changed the title Publish snapshots to Central Repository Publish snapshots to Sonatype Snapshot repository Jan 3, 2025
@dbwiddis dbwiddis closed this by deleting the head repository Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants