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

Add support for -Dbuild.version_qualifier. #128

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

dblock
Copy link
Member

@dblock dblock commented Mar 9, 2022

Signed-off-by: dblock dblock@dblock.org

Description

Add support for -Dbuild.version_qualifier=alpha1.

Issues Resolved

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 review from a team, peternied and lezzago March 9, 2022 18:47
@dblock dblock changed the title Add support for -Dbuild.version_qualifier. Add support for -Dbuild.version_qualifier, remove JDK8 and fix JDK17. Mar 9, 2022
@dblock dblock changed the title Add support for -Dbuild.version_qualifier, remove JDK8 and fix JDK17. Add support for -Dbuild.version_qualifier. Mar 9, 2022
peternied
peternied previously approved these changes Mar 9, 2022
@dblock
Copy link
Member Author

dblock commented Mar 9, 2022

Building on JDK8 is broken since some upgrades in OpenSearch 2.0, is being removed in #129.

Signed-off-by: dblock <dblock@dblock.org>
}

allprojects {
group 'org.opensearch.commons'
version = opensearch_version - '-SNAPSHOT' + '.0'
version = opensearch_version.tokenize('-')[0] + '.0'
Copy link
Member

Choose a reason for hiding this comment

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

do we really need to tokenize opensearch version ?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's things like 1.2.3-alpha1-SNAPSHOT, so we just need the first part left of the - or the entire thing if it's 1.2.3. Do you know a better way to do it?

@getsaurabh02 getsaurabh02 merged commit fb43b22 into opensearch-project:main Mar 10, 2022
zelinh pushed a commit that referenced this pull request Aug 18, 2022
Signed-off-by: dblock <dblock@dblock.org>
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
wuychn pushed a commit to ochprince/common-utils that referenced this pull request Mar 16, 2023
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.

4 participants