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

Automate the DataPrepperVersion from Gradle #4877

Open
dlvenable opened this issue Aug 27, 2024 · 0 comments
Open

Automate the DataPrepperVersion from Gradle #4877

dlvenable opened this issue Aug 27, 2024 · 0 comments
Labels
maintenance Issues to help maintain the project, such as improving builds, testing, etc.

Comments

@dlvenable
Copy link
Member

Is your feature request related to a problem? Please describe.

When we create a new major/minor release, we have to update the CURRENT_VERSION in the DataPrepperVersion file to the new version. We do this in preparation for the next release version.

Describe the solution you'd like

This should come from the version expressed in the gradle.properties that we release from.

version=2.10.0-SNAPSHOT

We can probably accomplish this by reading the version from a resource file. By including some new resource in the jar file, we can read that resource to determine the major/minor version. Gradle could easily produce this resource file as part of the build.

Describe alternatives you've considered (Optional)

It may be possible to have Gradle modify the compiled Java instead of using a resource file. We could investigate this as well.

Additional context
N/A

@dlvenable dlvenable added untriaged maintenance Issues to help maintain the project, such as improving builds, testing, etc. and removed untriaged labels Aug 27, 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

No branches or pull requests

1 participant