You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature allows users to to publish versions constraints for modules that are not direct dependencies. The versions are still defined in the hiero-dependency-versions platform project.
The plugin looks like this:
configurations.create("publishDependencyConstraint") {
extendsFrom(configurations.internal.get())
dependencies.all {
val constraint = this
project.dependencies.constraints.add("api", incoming.resolutionResult.rootComponent.map {
(it.dependencies.single {
it is ResolvedDependencyResult
&& it.selected.moduleVersion?.group == constraint.group
&& it.selected.moduleVersion?.name == constraint.name
} as ResolvedDependencyResult).selected.moduleVersion.toString()
})
}
}
This feature allows users to to publish versions constraints for modules that are not direct dependencies. The versions are still defined in the
hiero-dependency-versions
platform project.The plugin looks like this:
Modules using the plugin can then do:
This has a similar effect as
versionMapping { allVariants { fromResolutionResult() } }
already has for dependencies.The text was updated successfully, but these errors were encountered: