-
Notifications
You must be signed in to change notification settings - Fork 293
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
Dependency versions fix #2380
Dependency versions fix #2380
Conversation
…traints to make sure it is exported to maven correctly.
# Conflicts: # common/build.gradle.kts # engine/build.gradle.kts
# Conflicts: # common/build.gradle.kts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is interesting.
One question: Can we add this constraint to project level build.gradle since we are adding it to all the libraries ?
@vitorpamplona how about moving more dependencies to the #2306 approach instead? |
@vorburger I looked at Version Catalogs but I didn't find a way to explicitly force strict versions for our dependencies. @MJ1998 The constraint block to specify versions seems to be required every time one of the modules declares the dependency on HAPI individually. It then places the correct |
How do you mean? In
But I'm possibly missing the full problem of what this proposes to fix. |
No, that is just the preferred version. The |
I just found out that gradle does offer a
is equivalent to
It's kinda hidden in the specs (maybe outdated?), but we can test this later on with the TOML syntax. I just don't know how to declare a proper |
@vorburger the problem we're trying to solve is to stop applications using our libraries from having to declare resolution strategies like in this file: https://github.com/google/android-fhir/pull/2380/files#diff-a645a2c44f3874493dc92c37e4dbbcd33cb5042edd2de9d9ce6259ffdbf33010 This is a pretty strong functional requirement. I would place this as higher priority than migrating to toml files. So what I would suggest is to complete this fix first, and continue to migrate to toml wherever we can (it appears a partial migration is possible). And hopefully complete the migration soon with a way to declare |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @vitorpamplona for fixing this - huge improvement.
a couple of suggestions. would be great to fix in this pr but can be in an immediate follow-up too.
I don't suppose those |
* Moves the version selection from resolutionStrategy to dependencyConstraints to make sure it is exported to maven correctly. * Removes unused dependency declarations.
* Moves the version selection from resolutionStrategy to dependencyConstraints to make sure it is exported to maven correctly. * Removes unused dependency declarations.
Moves the version selection from resolutionStrategy to dependencyConstraints to make sure it is exported to maven correctly on publishing.
Type
Bug fix
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.