@groovy.transform.CompileStatic class BomPropertyOverridesExtension extends java.lang.Object
Configuration for the
org.apache.grails.gradle.bom-property-overrides plugin.
Exposed on the project as bomPropertyOverrides:
apply plugin: 'org.apache.grails.gradle.bom-property-overrides'
bomPropertyOverrides {
// Disable scanning declared platform() dependencies (default: true)
autoDetect = false
// Add explicit BOM coordinates - useful when a BOM is referenced
// indirectly (e.g., through a parent plugin) and not declared
// directly via platform() in the consumer's build.gradle
bom 'org.example:my-bom:1.0.0'
bom 'org.example:other-bom:2.0.0'
}
// Override versions via gradle.properties or ext[]
ext['slf4j.version'] = '2.0.13'
By default (autoDetect = true) the plugin scans every project
configuration for declared platform() / enforcedPlatform()
dependencies and registers each unique BOM for property-override
processing. Explicit entries added via bom(String) are always
processed in addition to auto-detected ones, regardless of the
autoDetect flag.
| Type | Name and description |
|---|---|
static java.lang.String |
EXTENSION_NAMEThe name of the project extension exposed on every project. |
Property<java.lang.Boolean> |
autoDetectWhether to auto-detect BOMs from declared platform() /
enforcedPlatform() dependencies on the project's
configurations. |
ListProperty<java.lang.String> |
bomsExplicit list of BOM coordinates ( group:artifact:version)
that should be processed for property overrides regardless of
whether they are declared as platforms on the project. |
| Constructor and description |
|---|
BomPropertyOverridesExtension(ObjectFactory objects) |
| 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) |
The name of the project extension exposed on every project.
Whether to auto-detect BOMs from declared platform() /
enforcedPlatform() dependencies on the project's
configurations. Defaults to true.
Explicit list of BOM coordinates (group:artifact:version)
that should be processed for property overrides regardless of
whether they are declared as platforms on the project.
Adds a BOM coordinate to the explicit override list.
coordinates - the BOM coordinates in group:artifact:version formatAdds multiple BOM coordinates to the explicit override list.
coordinates - the BOM coordinates in group:artifact:version format