@groovy.transform.CompileStatic class GrailsDependencyValidatorPlugin extends java.lang.Object implements Plugin<Project>
Validates that transitive dependencies do not replace versions what the BOM (grails-bom or grails-gradle-bom) defines. This covers both direct BOM constraints and inherited platform constraints (e.g., from spring-boot-dependencies).
The plugin auto-detects which BOM is in use by scanning the project's dependency declarations. Projects without a BOM are silently skipped.
Usage: Apply via CompilePlugin (automatic) or directly, then run
./gradlew validateDependencyVersions.
| Type | Name and description |
|---|---|
static java.lang.String |
VALIDATE_TASK_NAME |
| Constructor and description |
|---|
GrailsDependencyValidatorPlugin() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.apache.tools.ant.Project project) |
|
static java.lang.String |
detectBomPath(org.apache.tools.ant.Project project)Scans the project's configurations to find which BOM project is in use. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |