Skip to content

Conversation

@aldexis
Copy link
Contributor

@aldexis aldexis commented Jul 24, 2025

Before this PR

The generated source code was implicitly depending on com.palantir.safe-logging:safe-logging and io.dropwizard.metrics:metrics-core as could be seen by running checkImplicitDependencies from gradle-baseline.

After this PR

==COMMIT_MSG==
Properly declare all required dependencies for generated code
==COMMIT_MSG==

I've added the missing dependencies as well as a test covering that case so everything was properly declared.

Note: This is a similar PR to palantir/gradle-conjure#1652

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented Jul 24, 2025

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

Properly declare all required dependencies for generated code

Check the box to generate changelog(s)

  • Generate changelog entry

Comment on lines +84 to +90
TestContentHelpers.addVersionsToPropsFile(file('versions.props'), [
'com.google.errorprone:error_prone_annotations',
'com.palantir.tritium:tritium-registry',
'com.palantir.safe-logging:preconditions',
'com.palantir.safe-logging:safe-logging',
'io.dropwizard.metrics:metrics-core'
])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've also moved to using TestContentHelpers rather than forcing explicit versions

@bulldozer-bot bulldozer-bot bot merged commit 6517384 into develop Jul 30, 2025
5 checks passed
@bulldozer-bot bulldozer-bot bot deleted the ald/exact-dependencies branch July 30, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants