-
Notifications
You must be signed in to change notification settings - Fork 277
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-snapshot script is publishing the first jar it finds next to a pom. #439
Comments
Should we be rewriting this as a publish step in build-workflow? |
I have mixed feelings on that. I'd rather that instead of us pushing pre-built snapshot artifacts with this script that we update the build-workflow to conditionally push in component build scripts. Ex. Pass a publish flag to build.sh where artifacts may conditionally invoke a gradle script to push to the snapshot repo & the necessary credentials are provided by CI. For example the core repo has a
|
Generally python > bash because we can write tests. Care to write up a separate issue about what you think we should do longest term? |
@mch2 Can you add acceptance criteria so that we could move on. |
We have Snapshot publications that are including extra jars. These jars are incorrectly being picked up by the publish-snapshot.sh script and published with mvn deploy-file. As a result it is pushed to Sonatype as the latest publication, but is not the correct jar.
For example
org/opensearch/gradle/build-tools/1.1.0-SNAPSHOT/
publishes two jars:build-tools-1.1.0-SNAPSHOT-test-fixtures.jar
andbuild-tools-1.1.0-SNAPSHOT.jar
The script is picking up
build-tools-1.1.0-SNAPSHOT-test-fixtures.jar
and pushing under sonatype as:/org/opensearch/gradle/build-tools/1.1.0-SNAPSHOT/build-tools-1.1.0-20210910.002130-165.jar
When the dependency is used, the incorrect jar is fetched. Specifically for plugins & build-tools, this results in the following error.
Note - this is NOT an issue for release builds that are pushed with the stage-maven-release.sh script. That script using a separate nexus staging plugin that pushes all artifacts that are in the folder. Unfortunately we cannot use that to push snapshots.
The text was updated successfully, but these errors were encountered: