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

Adds a Gradle convention plugin for Maven publication #4421

Merged

Conversation

dlvenable
Copy link
Member

@dlvenable dlvenable commented Apr 16, 2024

Description

This PR moves the Maven publication steps into a Gradle convention plugin.

There are a few of motivations for this.

  1. The decision for which projects to publish was made in the root build.gradle rather than in the projects themselves. Now, projects decide by adding the plugin.
  2. This is easier to change dynamically when running builds that are not part of the standard open-source release.
  3. The projects would set the group, but it was not clear why from reading the project Gradle since the publication was inherited.
  4. Gradle recommends using convention plugins over subprojects/allprojects. This may be a good thing to do going forward.

Issues Resolved

N/A

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

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.

… plugin. This splits the build logic for publication and allows different projects to determine whether they publish to Maven rather than having to track this with conditionals in the root Gradle project.

Signed-off-by: David Venable <[email protected]>
@dlvenable dlvenable merged commit a5bdcf2 into opensearch-project:main Apr 16, 2024
72 of 74 checks passed
@dlvenable dlvenable deleted the gradle-convention-for-publish branch April 19, 2024 18:54
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Apr 22, 2024
… plugin. This splits the build logic for publication and allows different projects to determine whether they publish to Maven rather than having to track this with conditionals in the root Gradle project. (opensearch-project#4421)

Signed-off-by: David Venable <[email protected]>
@dlvenable dlvenable added the maintenance Issues to help maintain the project, such as improving builds, testing, etc. label May 14, 2024
@dlvenable dlvenable added this to the v2.8 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Issues to help maintain the project, such as improving builds, testing, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants