Skip to content

Conversation

@snazy
Copy link
Member

@snazy snazy commented Jul 30, 2024

Description

Introduces Gradle version catalogs (toml files), also bump a couple dependencies to recent versions.

Version catalogs as a central place to declare dependencies are easier to manage. Tools like renovate(bot) and dependabot can use these.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

... and bump a couple dependencies
implementation("io.dropwizard:dropwizard-jackson:${dropwizardVersion}")
implementation(libs.eclipselink)
implementation(platform(libs.dropwizard.bom))
implementation("io.dropwizard:dropwizard-jackson")
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason this one doesn't have a "libs." identifier?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup - it's just some artifact that's "version managed" via a bom.

caffeine = { module = "com.github.ben-manes.caffeine:caffeine", version = "3.1.8" }
commons-codec1 = { module = "commons-codec:commons-codec", version = "1.17.0" }
commons-lang3 = { module = "org.apache.commons:commons-lang3", version = "3.14.0" }
dropwizard-bom = { module = "io.dropwizard:dropwizard-bom", version = "4.0.7" }
Copy link
Member

Choose a reason for hiding this comment

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

can't version here be version.ref = "dropwizard"

Copy link
Member Author

Choose a reason for hiding this comment

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

Could be - dependency management tools however generate the PR title from the place they update. Renovate for example would use a PR title like Update dependency software.amazon.awssdk:bom to v2.26.25 for the "non ref" ones, but something like fix(deps): update errorprone to v2.29.2 for the versions.

It's a bit of a taste/preference thing.

Copy link
Member

@RussellSpitzer RussellSpitzer left a comment

Choose a reason for hiding this comment

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

Minor nits, Looks good to me otherwise

Copy link
Contributor

@flyrain flyrain 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 @snazy !


testImplementation(platform("org.junit:junit-bom:5.10.3"))
testImplementation(platform(libs.junit.bom))
testImplementation("org.junit.jupiter:junit-jupiter")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use lib.xxx here as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could - it's a taste/preference thing.
There can be a lot of "unmanaged" dependencies (version-managed via a bom) mentioned in libs.gradle.toml over time.

Copy link
Member Author

Choose a reason for hiding this comment

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

WRT to "visible dependency report" - I'll come up w/ additional PRs to a) automatically licenses, b) verify NOTICE content and c) generate a license report containing all deps in distributables.

Copy link
Contributor

Choose a reason for hiding this comment

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

it's a taste/preference thing.

I'd prefer a consistent style, but we can fix it in followup PRs.

@snazy snazy merged commit 627dc60 into apache:main Jul 31, 2024
@snazy snazy deleted the version-catalog branch July 31, 2024 18:56
eric-maynard pushed a commit to eric-maynard/polaris that referenced this pull request Dec 12, 2024
XJDKC pushed a commit to dennishuo/polaris that referenced this pull request Mar 18, 2025
[Cherrypick] SNOW-1926859 Hotfix CLIENT_REGION
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