Skip to content

Gradle updated to use version catalogs #1620

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

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Gradle updated to use version catalogs #1620

merged 2 commits into from
Feb 5, 2025

Conversation

rozza
Copy link
Member

@rozza rozza commented Jan 29, 2025

No description provided.

@rozza rozza force-pushed the JAVA-5291 branch 3 times, most recently from 7b7c765 to a437bb6 Compare January 30, 2025 09:48
@rozza rozza marked this pull request as ready for review January 30, 2025 11:59
@rozza rozza requested a review from nhachicha January 30, 2025 11:59
@rozza
Copy link
Member Author

rozza commented Jan 30, 2025

Note: the apply plugin: "<plugin-name>" syntax doesn't work with libs.versions.toml eg:

configure(scalaProjects) {
    apply plugin: "java-library"
    apply plugin: "scala"
    apply plugin: "com.adtran.scala-multiversion-plugin"
    apply plugin: "com.diffplug.spotless"
    

As this is legacy syntax it'll be refactored out when going to convention based build logic in JAVA-5758

Copy link
Contributor

@nhachicha nhachicha left a comment

Choose a reason for hiding this comment

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

Very neat using the catalogue 🎉

@@ -251,25 +222,19 @@ configure(javaCodeCheckedProjects) {
apply plugin: 'com.adarshr.test-logger'

dependencies {
Copy link
Contributor

Choose a reason for hiding this comment

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

Some dependencies were removed here, are they redundant?

Copy link
Member Author

Choose a reason for hiding this comment

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

Here we take advantage of bundles in the version catalog - which expands out to the same thing.

@rozza rozza requested a review from nhachicha February 3, 2025 13:47
@rozza rozza merged commit e80cb0b into mongodb:main Feb 5, 2025
56 of 60 checks passed
@rozza rozza deleted the JAVA-5291 branch February 5, 2025 11:58
@rozza rozza restored the JAVA-5291 branch February 6, 2025 10:15
@rozza rozza deleted the JAVA-5291 branch February 6, 2025 10:16
@rozza
Copy link
Member Author

rozza commented Feb 6, 2025

Accidently merged into main - reverted in: #1624 merged into gradle branch in #1625

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.

2 participants