-
getRootProject
-
getRootDir
-
getBuildDir
-
setBuildDir
-
setBuildDir
-
getBuildFile
-
getParent
-
getName
-
getDisplayName
-
getDescription
-
setDescription
-
getGroup
-
setGroup
-
getVersion
-
setVersion
-
getStatus
-
setStatus
-
getChildProjects
-
setProperty
-
getProject
-
getIsolated
-
getAllprojects
-
getSubprojects
-
task
-
task
Deprecated.
Creates a
Taskwith the given name and adds it to this project. A map of creation options can be passed to this method to control how the task is created. The following options are available:Permitted map keys Option Description Default Value "type"The class of the task to create. DefaultTask"overwrite"Replace an existing task? false"dependsOn"A task name or set of task names which this task depends on []"action"A closure or Actionto add to the task.null"description"A description of the task. null"group"A task group which this task belongs to. nullAfter the task is added to the project, it is made available as a property of the project, so that you can reference the task by name in your build file. See here for more details
If a task with the given name already exists in this project and the
overrideoption is not set to true, an exception is thrown.- Parameters:
args- The task creation options.name- The name of the task to be created- Returns:
- The newly created task object
- Throws:
InvalidUserDataException- If a task with the given name already exists in this project.
-
task
-
task
-
task
-
getPath
-
getBuildTreePath
-
getDefaultTasks
-
setDefaultTasks
-
defaultTasks
-
evaluationDependsOn
-
evaluationDependsOnChildren
-
findProject
-
project
-
project
-
project
-
getAllTasks
-
getTasksByName
-
getProjectDir
-
file
-
file
-
uri
-
relativePath
-
files
-
files
-
files
-
fileTree
-
fileTree
-
fileTree
-
fileTree
-
zipTree
-
tarTree
-
provider
-
getProviders
-
getObjects
-
getLayout
-
mkdir
-
delete
-
delete
-
absoluteProjectPath
-
relativeProjectPath
-
getAnt
-
createAntBuilder
-
ant
-
ant
-
getConfigurations
-
configurations
-
getArtifacts
-
artifacts
-
artifacts
-
depthCompare
-
getDepth
-
getTasks
-
subprojects
-
subprojects
-
allprojects
-
allprojects
-
beforeEvaluate
-
afterEvaluate
-
beforeEvaluate
-
afterEvaluate
-
hasProperty
-
getProperties
-
property
-
findProperty
-
getLogger
-
getGradle
-
getLogging
-
configure
-
configure
-
configure
-
getRepositories
-
repositories
-
getDependencies
-
dependencies
-
getDependencyFactory
-
getBuildscript
-
buildscript
-
copy
-
copy
-
copySpec
-
copySpec
-
copySpec
-
sync
-
getState
-
container
-
container
-
container
-
getExtensions
-
getResources
-
getComponents
-
components
-
getNormalization
-
normalization
-
dependencyLocking
-
getDependencyLocking