Could somebody please give an example of using the addProvider method from DependencyHandler (Gradle API 6.8.3) ?
Thanks!
Could somebody please give an example of using the addProvider method from DependencyHandler (Gradle API 6.8.3) ?
Thanks!
dependencies {
addProvider<String, ExternalModuleDependency>("implementation", provider { "commons-io:commons-io:2.8.0" }) {
}
}
But I seriously doubt it is meant for direct usage, especially when you can simply do
dependencies {
implementation(provider { "commons-io:commons-io:2.8.0" })
}
I guess it is more just an implementation detail of the version catalogs feature.