public interface ProjectTools
Provides various project-related information.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public ConsoleOutput |
getConsoleOutput()Console output mode |
|
public String |
getFullProjectPath()Get the full project path including the root project name in case of a multi-project. |
|
public LogLevel |
getGradleLogLevel()Get the minimum log level for Gradle. |
|
public Provider<String> |
getGroupProvider()Lazy-evaluated project group. |
|
public Provider<Boolean> |
getOfflineProvider()A value that indicates whether Gradle is run in offline mode or not. |
|
public Provider<String> |
getProjectDescriptionProvider()Description of the project. |
|
public Provider<String> |
getProjectNameProvider()Name of the project. |
|
public Provider<String> |
getVersionProvider()Lazy-evaluated project version. |
|
public boolean |
isConfigurationCacheEnabled()Whether configuration cache is enabled for a build. |
|
public boolean |
isMultiProject()Whether the setup is a multi-project or a single project. |
|
public boolean |
isRefreshDependencies()Whether dependencies should be refreshed. |
|
public boolean |
isRerunTasks()Whether tasks should be re-ruin |
|
public boolean |
isRootProject()Whether the current project is the root project. |
|
public void |
setVersionProvider(Object newVersion)Sets a new version for a project. |
Console output mode
Get the full project path including the root project name in case of a multi-project.
Get the minimum log level for Gradle.
Lazy-evaluated project group.
A value that indicates whether Gradle is run in offline mode or not.
true iof offline.
Never empty.Description of the project.
Name of the project.
Lazy-evaluated project version.
Whether configuration cache is enabled for a build.
true is configuration cache is available and enabled.Whether the setup is a multi-project or a single project.
true for a multi-projectWhether dependencies should be refreshed.
true to check dependencies again.Whether tasks should be re-ruin
true if tasks were set to be re-run.Whether the current project is the root project.
true if the root project.
(Always true for a single project).Sets a new version for a project.
This creates an internal objhect that can safely be evaluated by Gradle's Project.getVersion.
newVersion - Anything that can be converted to a string using
StringTools.