Slackbot
02/21/2023, 2:00 PMVampire
02/21/2023, 3:25 PMforce
deprecated anyway and you should use strict
versions instead?Tapchicoma
02/21/2023, 3:27 PMforce
Vampire
02/21/2023, 3:29 PMTapchicoma
02/21/2023, 3:30 PMstrict
for all configurations in the project?Vampire
02/21/2023, 3:31 PMForced dependencies
Forcing dependency versions usingon a first-level dependency has been deprecated.force = true
Force has both a semantic and ordering issue which can be avoided by using a strict version constraint.Not the
force
on the resolution strategyVampire
02/21/2023, 3:32 PM!!
after the version, or by rich version declaration where you set the strictly
property.Tapchicoma
02/21/2023, 3:32 PMVampire
02/21/2023, 3:36 PMResolutionStrategy#force
is something you do on a configuration and you do not get hold of detached configurations, because they are detached.Vampire
02/21/2023, 3:36 PMTapchicoma
02/21/2023, 3:49 PMconstraints { ... }
does not work in this case for non-detached configurationsVampire
02/21/2023, 3:51 PMTapchicoma
02/21/2023, 3:51 PM1.8.10
versionVampire
02/21/2023, 3:54 PMio.spring.dependency-management
plugin and use the built-in BOM support instead, even the maintainers of that plugin recommend that.Vampire
02/21/2023, 3:55 PMTapchicoma
02/21/2023, 3:55 PMeven the maintainers of that plugin recommend that
Vampire
02/21/2023, 3:55 PMVampire
02/21/2023, 3:56 PMVampire
02/21/2023, 3:57 PMAndy Wilkinson: [...] In fact, it would have already happened if we'd had the bandwidth for it. I'd strongly encourage you to look at using Gradle's built-in platform support and find an alternative way of dealing with the lack of property-based version overrides.
Vampire
02/21/2023, 3:58 PMJohn
02/21/2023, 4:27 PMChris Lee
02/21/2023, 6:56 PMprohibitPlugin(
SPRING_DEPENDENCY_MANAGEMENT_PLUGIN_ID,
"Spring dependency management plugin is not required"
)
public fun Project.prohibitPlugin(pluginId: String, message: String) {
withPlugin(pluginId) {
error("Plugin prohibited: $pluginId; $message")
}
}