Package io.freefair.gradle.util
Class GitUtil
- java.lang.Object
-
- io.freefair.gradle.util.GitUtil
-
public final class GitUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Provider<String>
execute(Project project, String... command)
static Provider<String>
getRef(Project project)
static Provider<String>
getSha(Project project)
static boolean
isCircleCi(ProviderFactory providerFactory)
static boolean
isGithubActions(ProviderFactory providerFactory)
static boolean
isGitLab(ProviderFactory providerFactory)
static boolean
isJenkins(ProviderFactory providerFactory)
static boolean
isTravisCi(ProviderFactory providerFactory)
-
-
-
Method Detail
-
isTravisCi
public static boolean isTravisCi(ProviderFactory providerFactory)
-
isCircleCi
public static boolean isCircleCi(ProviderFactory providerFactory)
-
isGithubActions
public static boolean isGithubActions(ProviderFactory providerFactory)
-
isJenkins
public static boolean isJenkins(ProviderFactory providerFactory)
-
isGitLab
public static boolean isGitLab(ProviderFactory providerFactory)
-
-