@groovy.transform.CompileStatic abstract class ValidateProductionClasspathTask extends DefaultTask
Fails when a forbidden coordinate appears on a project's runtimeClasspath. Used to keep
developer-only tooling - the console, the shell and their terminal libraries - out of what an
application ships.
The dependency graph arrives as a ResolvedComponentResult provider rather than being read off the project at execution time, so the task carries everything it needs and stays compatible with the configuration cache.
| Constructor and description |
|---|
ValidateProductionClasspathTask() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract SetProperty<java.lang.String> |
getForbiddenCoordinates()"group:name" keys that must not appear; name may be *. |
|
abstract Property<java.lang.String> |
getProjectPath()Identifies the offending project in the failure message. |
|
abstract Property<ResolvedComponentResult> |
getRootComponent()The root of the resolved runtimeClasspath graph. |
|
void |
validate() |
"group:name" keys that must not appear; name may be *.
Identifies the offending project in the failure message.
The root of the resolved runtimeClasspath graph.