Utility classes.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
addToIdeSources(org.gradle.api.Project project, boolean isTest, java.io.File f)Adds the file to the IDE plugin's set of sources / resources. |
|
static int |
compareGradleVersion(org.gradle.api.Project project, java.lang.String target)Returns positive/0/negative if current Gradle version is higher than/equal to/lower than the given target version. |
|
static java.lang.String |
getConfigName(java.lang.String sourceSetName, java.lang.String type)Returns the conventional name of a configuration for a sourceSet |
|
static java.lang.String |
getKotlinAndroidCompileTaskName(org.gradle.api.Project project, java.lang.String variantName)Returns the compile task name for Kotlin. |
|
static java.lang.String |
getSourceSetSubstringForTaskNames(java.lang.String sourceSetName)Returns the conventional substring that represents the sourceSet in task names, e.g., "generate |
|
static boolean |
isAndroidProject(org.gradle.api.Project project)Detects if an android plugin has been applied to the project |
|
static boolean |
isTest(java.lang.String sourceSetOrVariantName)Returns true if the source set is a test related source set. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Adds the file to the IDE plugin's set of sources / resources. If the directory does not exist, it will be created before the IDE task is run.
Returns positive/0/negative if current Gradle version is higher than/equal to/lower than the given target version. Only major and minor versions are checked. Patch version is ignored.
Returns the conventional name of a configuration for a sourceSet
Returns the compile task name for Kotlin.
Returns the conventional substring that represents the sourceSet in task names,
e.g., "generate
Detects if an android plugin has been applied to the project
Returns true if the source set is a test related source set.