Package com.mooltiverse.oss.nyx.gradle
Class NyxExtension.GitConfiguration
java.lang.Object
com.mooltiverse.oss.nyx.gradle.NyxExtension.GitConfiguration
- Enclosing class:
NyxExtension
The class to model the 'git' block within the extension.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The class to model a single 'remotes' item within the extension. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectFactory
Returns an object factory instance.Returns the map of remotes.void
remotes
(Action<? super NamedDomainObjectContainer<NyxExtension.GitConfiguration.GitRemoteConfiguration>> configurationAction) Accepts the DSL configuration for theremotes
block, needed for defining the block using the curly braces syntax in Gradle build scripts.
-
Constructor Details
-
GitConfiguration
public GitConfiguration()Default constructor.
-
-
Method Details
-
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
-
getRemotes
public NamedDomainObjectContainer<NyxExtension.GitConfiguration.GitRemoteConfiguration> getRemotes()Returns the map of remotes.- Returns:
- the map of remotes.
-
remotes
public void remotes(Action<? super NamedDomainObjectContainer<NyxExtension.GitConfiguration.GitRemoteConfiguration>> configurationAction) Accepts the DSL configuration for theremotes
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:
configurationAction
- the configuration action for theitems
block
-