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

[Backport 2.x] Switch from buildSrc/version.properties to Gradle version catalog (gradle/libs.versions.toml) to enable dependabot to perform automated upgrades on common libs (#16284) #16508

Merged
merged 6 commits into from
Oct 28, 2024

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Oct 28, 2024

Backport of #16284 to 2.x

…`gradle/libs.versions.toml`) to enable dependabot to perform automated upgrades on common libs (opensearch-project#16284)

* WIP on lib toml

Signed-off-by: Craig Perkins <[email protected]>

* SpotlessApply

Signed-off-by: Craig Perkins <[email protected]>

* Remove unnecessary lines

Signed-off-by: Craig Perkins <[email protected]>

* Specify time when dependabot runs

Signed-off-by: Craig Perkins <[email protected]>

* Refer to version from libs.versions.toml

Signed-off-by: Craig Perkins <[email protected]>

* Use version

Signed-off-by: Craig Perkins <[email protected]>

* Specify version catalog

Signed-off-by: Craig Perkins <[email protected]>

* Call .get()

Signed-off-by: Craig Perkins <[email protected]>

* Define version catalog

Signed-off-by: Craig Perkins <[email protected]>

* Use libraries

Signed-off-by: Craig Perkins <[email protected]>

* Downgrade purposefully

Signed-off-by: Craig Perkins <[email protected]>

* Add mavenCentral

Signed-off-by: Craig Perkins <[email protected]>

* Try w/o libraries section

Signed-off-by: Craig Perkins <[email protected]>

* reinstate

Signed-off-by: Craig Perkins <[email protected]>

* Remove version.properties

Signed-off-by: Craig Perkins <[email protected]>

* Update syntax

Signed-off-by: Craig Perkins <[email protected]>

* Change back to weekly

Signed-off-by: Craig Perkins <[email protected]>

* Add grpc

Signed-off-by: Craig Perkins <[email protected]>

* Get relative to project root. Relative path not working on windows bc windows had gradle wrapper path

Signed-off-by: Craig Perkins <[email protected]>

* Add minimal version.properties with only opensearch version to accommodate external references

Signed-off-by: Craig Perkins <[email protected]>

* singularize version.properties

Signed-off-by: Craig Perkins <[email protected]>

* Get rootDir

Signed-off-by: Craig Perkins <[email protected]>

* Fix issue loading snapshot

Signed-off-by: Craig Perkins <[email protected]>

* Limit logic to generating version.properties file within buildSrc

Signed-off-by: Craig Perkins <[email protected]>

* Remove unused exports

Signed-off-by: Craig Perkins <[email protected]>

* Add import

Signed-off-by: Craig Perkins <[email protected]>

* Remove unused code

Signed-off-by: Craig Perkins <[email protected]>

* Remove mavenCentral from publication section

Signed-off-by: Craig Perkins <[email protected]>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <[email protected]>

* Update reactor-netty version

Signed-off-by: Craig Perkins <[email protected]>

* Only keep versions section in toml

Signed-off-by: Craig Perkins <[email protected]>

* Replaces versions catalog TOML parsing with Gradle's VersionCatalogsExtension

Signed-off-by: Andriy Redko <[email protected]>

* Update bundled_jdk

Signed-off-by: Craig Perkins <[email protected]>

* Update bytebuddy and mockito

Signed-off-by: Craig Perkins <[email protected]>

---------

Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Andriy Redko <[email protected]>
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
Co-authored-by: Andriy Redko <[email protected]>
Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]>
(cherry picked from commit af7a067)
Copy link
Contributor

❌ Gradle check result for 5b857c6: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for 6b29bab: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: Craig Perkins <[email protected]>
@cwperks
Copy link
Member Author

cwperks commented Oct 28, 2024

@dblock Can you check if #3634 was ever backported?

Copy link
Contributor

❌ Gradle check result for adc4728: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@cwperks
Copy link
Member Author

cwperks commented Oct 28, 2024

opened an issue for the failing test: #16513

Copy link
Contributor

❌ Gradle check result for de44ed8: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: Andriy Redko <[email protected]>
@reta reta force-pushed the backport-16284-to-2.x branch from 45aced6 to 704ea11 Compare October 28, 2024 20:32
Copy link
Contributor

❌ Gradle check result for 704ea11: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: Andriy Redko <[email protected]>
@reta reta force-pushed the backport-16284-to-2.x branch from e7d7ba2 to 59f434b Compare October 28, 2024 21:39
@reta
Copy link
Collaborator

reta commented Oct 28, 2024

@cwperks should be all set now, the 2.x JDK version was not correct (should be 21)

@cwperks
Copy link
Member Author

cwperks commented Oct 28, 2024

@cwperks should be all set now, the 2.x JDK version was not correct (should be 21)

Thank you @reta. My bad for not just generating the toml file based on the version.properties in the 2.x line.

Copy link
Contributor

✅ Gradle check result for 59f434b: SUCCESS

@reta reta merged commit 037c3ea into opensearch-project:2.x Oct 28, 2024
36 of 37 checks passed
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.

3 participants