@org.gradle.api.tasks.CacheableTask abstract class ExtractDependenciesTask extends DefaultTask
Grails Bom files define their dependencies in a series of maps, this task takes those maps and generates an asciidoc file containing all of the resolve dependencies and their versions in the bom.
| Type | Name and description |
|---|---|
ConfigurationContainer |
configurationContainer |
DependencyHandler |
dependencyHandler |
| Constructor and description |
|---|
ExtractDependenciesTask() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
captureProjectServices(DependencyHandler dependencies, ConfigurationContainer configurations)Captures project-scoped services at configuration time so they can be used at execution time without accessing the deprecated Task.project property. |
|
void |
generate() |
|
abstract Property<java.lang.Boolean> |
getAutoRegisterTransitivePlatforms()When true, transitive platform dependencies that are not explicitly
registered in combinedPlatforms / dependencies.gradle will be
auto-registered in PropertyNameCalculator instead of causing a build
failure. |
|
abstract Property<java.lang.String> |
getConfigurationName() |
|
abstract MapProperty<java.lang.String, java.lang.String> |
getDefinitions() |
|
abstract ConfigurableFileCollection |
getDependencyArtifacts() |
|
abstract RegularFileProperty |
getDestination() |
|
abstract MapProperty<java.lang.String, java.lang.String> |
getForcedGroupPrefixes() |
|
abstract MapProperty<java.lang.String, java.lang.String> |
getPlatformDefinitions() |
|
abstract MapProperty<java.lang.String, java.lang.String> |
getProjectArtifactIds() |
|
abstract MapProperty<java.lang.String, java.lang.String> |
getProjectCoordinateProperties() |
|
abstract Property<java.lang.String> |
getProjectName() |
|
abstract MapProperty<java.lang.String, java.lang.String> |
getVersions() |
|
java.util.Properties |
populatePlatformDependencies(CoordinateVersionHolder bomCoordinates, java.util.List<CoordinateHolder> exclusionRules, java.util.Map<CoordinateHolder, ExtractedDependencyConstraint> constraints, boolean error, int level) |
|
void |
setConfiguration(NamedDomainObjectProvider<Configuration> config) |
Captures project-scoped services at configuration time so they can be used at execution time without accessing the deprecated Task.project property.
When true, transitive platform dependencies that are not explicitly
registered in combinedPlatforms / dependencies.gradle will be
auto-registered in PropertyNameCalculator instead of causing a build
failure. This is required for BOMs that import an external platform via the
gradle module format (e.g. micronaut-platform) which itself imports
many sub-BOMs that Grails does not manage directly.
Defaults to false so that existing BOMs (grails-bom, grails-base-bom)
retain the strict validation that every platform dependency has a known property
name in dependencies.gradle.