Class LocalGitRepo.Builder
- java.lang.Object
-
- com.github.danielflower.mavenplugins.release.LocalGitRepo.Builder
-
- Enclosing class:
- LocalGitRepo
public static class LocalGitRepo.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalGitRepobuildFromCurrentDir()Uses the current working dir to open the Git repository.LocalGitRepo.BuildercredentialsProvider(org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)Sets the username/password pair for HTTPS URLs or SSH with passwordlLocalGitRepo.BuilderremoteGitOperationsAllowed(Set<GitOperations> operationsAllowed)Flag for which remote Git operations are permitted.LocalGitRepo.BuilderremoteGitUrl(String remoteUrl)Overrides the URL of remote Git repository.
-
-
-
Method Detail
-
remoteGitOperationsAllowed
public LocalGitRepo.Builder remoteGitOperationsAllowed(Set<GitOperations> operationsAllowed)
Flag for which remote Git operations are permitted. Local values will be substituted if remote operations are forbidden; this means the local copy of the repository must be up to date!
-
remoteGitUrl
public LocalGitRepo.Builder remoteGitUrl(String remoteUrl)
Overrides the URL of remote Git repository.
-
credentialsProvider
public LocalGitRepo.Builder credentialsProvider(org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
Sets the username/password pair for HTTPS URLs or SSH with passwordl
-
buildFromCurrentDir
public LocalGitRepo buildFromCurrentDir() throws ValidationException
Uses the current working dir to open the Git repository.- Throws:
ValidationException- if anything goes wrong
-
-