@groovy.transform.CompileStatic abstract class ValidateDependencyVersionsTask extends DefaultTask
Fails when a transitive dependency resolves to a version other than the one the BOM manages.
The task compares two maps of "group:name" -> version and nothing more. Both are supplied
as providers by GrailsDependencyValidatorPlugin, so the dependency graph is inspected while
the task's inputs are computed rather than from inside the task action - the task holds no reference
to the project and stays compatible with the configuration cache.
| Constructor and description |
|---|
ValidateDependencyVersionsTask() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract SetProperty<java.lang.String> |
getAllowedOverrides()Coordinates exempted from validation because the divergence is deliberate. |
|
abstract Property<java.lang.String> |
getBomPath()Path of the BOM in use, or empty when the project has none to validate against. |
|
abstract MapProperty<java.lang.String, java.lang.String> |
getBomVersions()Versions the BOM manages, including those inherited from platforms it imports. |
|
abstract Property<java.lang.String> |
getProjectName()Names the project in the failure message. |
|
abstract MapProperty<java.lang.String, java.lang.String> |
getResolvedVersions()Versions the project's BOM-bearing configurations actually resolved to. |
|
void |
validate() |
Coordinates exempted from validation because the divergence is deliberate.
Path of the BOM in use, or empty when the project has none to validate against.
Versions the BOM manages, including those inherited from platforms it imports.
Names the project in the failure message.
Versions the project's BOM-bearing configurations actually resolved to.