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 Details

    • GitRemoteConfiguration

      public GitRemoteConfiguration(String name)
      Constructor. This constructor is required as per the NamedDomainObjectContainer specification.
      Parameters:
      name - the remote name
  • Method Details

    • 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.
    • getAuthenticationMethod

      public Property<String> getAuthenticationMethod()
      Returns the remote authentication method. 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 authentication method
    • 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
    • getPrivateKey

      public Property<String> getPrivateKey()
      Returns the remote private key. 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 private key
    • getPassphrase

      public Property<String> getPassphrase()
      Returns the remote passphrase for the private key. 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 passphrase for the private key