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

Fix the release build by only applying the Maven publish task to our actual Java artifacts #4337

Merged

Conversation

dlvenable
Copy link
Member

Description

The release build is failing on the publish step:

> Task :release:docker:processResources NO-SOURCE
   > Invalid publication 'mavenJava': version cannot be empty.

The reason is that the current Gradle configuration is trying to publish all projects. This includes projects such as performance-test, e2e-test, and the release projects.

The current fix for now is to look for projects by name. Either:

  • The name starts with data-prepper - this covers core projects; or
  • The parent project is data-prepper-plugins - this covers all plugins

This is needed for the 2.7.0 release.

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.

…er projects with a name starting with data-prepper or any projects that are children of the data-prepper-plugins project.

Signed-off-by: David Venable <dlv@amazon.com>
@dlvenable dlvenable merged commit 8760945 into opensearch-project:main Mar 26, 2024
66 of 76 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 26, 2024
…er projects with a name starting with data-prepper or any projects that are children of the data-prepper-plugins project. (#4337)

Signed-off-by: David Venable <dlv@amazon.com>
(cherry picked from commit 8760945)
dlvenable added a commit that referenced this pull request Mar 27, 2024
…er projects with a name starting with data-prepper or any projects that are children of the data-prepper-plugins project. (#4337) (#4339)

Signed-off-by: David Venable <dlv@amazon.com>
(cherry picked from commit 8760945)

Co-authored-by: David Venable <dlv@amazon.com>
@dlvenable dlvenable deleted the fix-release-build-publish branch March 27, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants