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

Use externally-defined OpenSearch version when specified. #179

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

dblock
Copy link
Member

@dblock dblock commented Aug 13, 2021

Signed-off-by: dblock [email protected]

Description

Allows one to run ./gradlew build --no-daemon -Dopensearch.version=1.0.0-SNAPSHOT -Dbuild.snapshot=true to produce a -SNAPSHOT artifact that correctly depends on the -SNAPSHOT build of OpenSearch.

Issues Resolved

Closes #177

Check List

  • Commits are signed per the DCO using --signoff

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.

@dblock dblock requested a review from chloe-zh August 13, 2021 16:53
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
}

allprojects {
version = "${opensearchVersion}.0"
version = "${opensearchVersion}" - "-SNAPSHOT" + ".0"
Copy link
Member Author

Choose a reason for hiding this comment

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

Otherwise I end up with a 1.0.0-SNAPSHOT-0 artifact.

@codecov-commenter
Copy link

codecov-commenter commented Aug 13, 2021

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.89%. Comparing base (21cad56) to head (fa58ce8).
Report is 867 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #179   +/-   ##
=========================================
  Coverage     99.89%   99.89%           
  Complexity     2512     2512           
=========================================
  Files           245      245           
  Lines          5853     5853           
  Branches        342      342           
=========================================
  Hits           5847     5847           
  Misses            5        5           
  Partials          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@chloe-zh chloe-zh left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

@chloe-zh chloe-zh requested a review from dai-chen August 13, 2021 17:05
@dblock dblock merged commit 90eb1a9 into opensearch-project:main Aug 13, 2021
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.

[BUG] Snapshot build is broken
3 participants