Named
@Incubating public interface VersionCatalogBuilder extends Named
Modifier and Type | Interface | Description |
---|---|---|
static interface |
VersionCatalogBuilder.AliasBuilder |
Allows configuring an alias
|
static interface |
VersionCatalogBuilder.LibraryAliasBuilder |
Allows configuring the version of a library
|
Named.Namer
Modifier and Type | Method | Description |
---|---|---|
VersionCatalogBuilder.AliasBuilder |
alias(String alias) |
Entry point for registering an alias for a library
|
void |
bundle(String name,
List<String> aliases) |
Declares a bundle of dependencies.
|
void |
from(Object dependencyNotation) |
Configures the model by reading it from a version catalog.
|
Property<String> |
getDescription() |
A description for the dependencies model, which will be used in
the generated sources as documentation.
|
String |
getLibrariesExtensionName() |
Returns the name of the extension configured by this builder
|
String |
version(String name,
String version) |
Configures a dependency version which can then be referenced using
the
VersionCatalogBuilder.LibraryAliasBuilder.versionRef(String) method. |
String |
version(String name,
Action<? super MutableVersionConstraint> versionSpec) |
Configures a dependency version which can then be referenced using
the
VersionCatalogBuilder.LibraryAliasBuilder.versionRef(String) )} method. |
Property<String> getDescription()
void from(Object dependencyNotation)
dependencyNotation
- any notation supported by DependencyHandler
String version(String name, Action<? super MutableVersionConstraint> versionSpec)
VersionCatalogBuilder.LibraryAliasBuilder.versionRef(String)
)} method.name
- an identifier for the versionversionSpec
- the dependency version specString version(String name, String version)
VersionCatalogBuilder.LibraryAliasBuilder.versionRef(String)
method.name
- an identifier for the versionversion
- the version stringVersionCatalogBuilder.AliasBuilder alias(String alias)
alias
- the alias identifervoid bundle(String name, List<String> aliases)
alias(String)
method.name
- the name of the bundlealiases
- the aliases of the dependencies included in the bundleString getLibrariesExtensionName()