Package com.mooltiverse.oss.nyx.gradle
Class NyxExtension.GitConfiguration.GitRemoteConfiguration
- java.lang.Object
-
- com.mooltiverse.oss.nyx.gradle.NyxExtension.GitConfiguration.GitRemoteConfiguration
-
- Enclosing class:
- NyxExtension.GitConfiguration
public abstract static class NyxExtension.GitConfiguration.GitRemoteConfiguration extends Object
The class to model a single 'remotes' item within the extension.
-
-
Constructor Summary
Constructors Constructor Description GitRemoteConfiguration(String name)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name read-only mandatory property.protected abstract ObjectFactory
getObjectfactory()
Returns an object factory instance.Property<String>
getPassword()
Returns the remote password.Property<String>
getUser()
Returns the remote user.
-
-
-
Constructor Detail
-
GitRemoteConfiguration
public GitRemoteConfiguration(String name)
Constructor. This constructor is required as per theNamedDomainObjectContainer
specification.- Parameters:
name
- the remote name
-
-
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
-
getName
public String getName()
Returns the name read-only mandatory property.- Returns:
- the name read-only mandatory property.
-
getPassword
public Property<String> getPassword()
Returns the remote password. When this is set by the user it overrides the inference performed by Nyx. We provide an implementation of this method instead of using the abstract definition as it's safer for old Gradle versions we support.- Returns:
- the remote password
-
getUser
public Property<String> getUser()
Returns the remote user. When this is set by the user it overrides the inference performed by Nyx. We provide an implementation of this method instead of using the abstract definition as it's safer for old Gradle versions we support.- Returns:
- the remote user
-
-