Package com.mooltiverse.oss.nyx.gradle
Class NyxExtension.CommitMessageConventions
- java.lang.Object
-
- com.mooltiverse.oss.nyx.gradle.NyxExtension.CommitMessageConventions
-
- Enclosing class:
- NyxExtension
public abstract static class NyxExtension.CommitMessageConventions extends Object
The class to model the 'commitMessageConventions' block within the extension.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NyxExtension.CommitMessageConventions.CommitMessageConvention
The class to model a single 'commitMessageConventions' item within the extension.
-
Constructor Summary
Constructors Constructor Description CommitMessageConventions()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ListProperty<String>
getEnabled()
Returns list of enabled convention names.NamedDomainObjectContainer<NyxExtension.CommitMessageConventions.CommitMessageConvention>
getItems()
Returns the map of commit message convention items.protected abstract ObjectFactory
getObjectfactory()
Returns an object factory instance.void
items(Action<? super NamedDomainObjectContainer<NyxExtension.CommitMessageConventions.CommitMessageConvention>> configuration)
Accepts the DSL configuration for theitems
block, needed for defining the block using the curly braces syntax in Gradle build scripts.
-
-
-
Method Detail
-
getObjectfactory
@Inject protected abstract ObjectFactory getObjectfactory()
Returns an object factory instance. The instance is injected by Gradle as soon as this getter method is invoked. Using property injection instead of constructor injection has a few advantages: it allows Gradle to refer injecting the object until it's required and is safer for backward compatibility (older versions can be supported).- Returns:
- the object factory instance
-
getEnabled
public ListProperty<String> getEnabled()
Returns list of enabled convention names.- Returns:
- list of enabled convention names.
-
getItems
public NamedDomainObjectContainer<NyxExtension.CommitMessageConventions.CommitMessageConvention> getItems()
Returns the map of commit message convention items.- Returns:
- the map of commit message convention items.
-
items
public void items(Action<? super NamedDomainObjectContainer<NyxExtension.CommitMessageConventions.CommitMessageConvention>> configuration)
Accepts the DSL configuration for theitems
block, needed for defining the block using the curly braces syntax in Gradle build scripts. See the documentation on top of this class for more.- Parameters:
configuration
- the configuration object for theitems
block
-
-