Skip to content

Instantly share code, notes, and snippets.

@yukpiz
Last active June 6, 2016 06:04
Show Gist options
  • Save yukpiz/05c73f4817b3d6720797da916d73a0b6 to your computer and use it in GitHub Desktop.
Save yukpiz/05c73f4817b3d6720797da916d73a0b6 to your computer and use it in GitHub Desktop.

DETAIL OF GRADLE TASKS

Default Tasks


$ gradle tasks
Incremental java compilation is an incubating feature.
:tasks

------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------

Android tasks
-------------
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for each variant.
sourceSets - Prints out all the source sets defined in this project.

Build tasks
-----------
assemble - Assembles all variants of all applications and secondary packages.
assembleAndroidTest - Assembles all the Test applications.
assembleDebug - Assembles all Debug builds.
assembleRelease - Assembles all Release builds.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
clean - Deletes the build directory.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources
mockableAndroidJar - Creates a version of android.jar that's suitable for unit tests.

Build Setup tasks
-----------------
init - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]

Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in root project 'ask_android'.
components - Displays the components produced by root project 'ask_android'. [incubating]
dependencies - Displays all dependencies declared in root project 'ask_android'.
dependencyInsight - Displays the insight into a specific dependency in root project 'ask_android'.
help - Displays a help message.
model - Displays the configuration model of root project 'ask_android'. [incubating]
projects - Displays the sub-projects of root project 'ask_android'.
properties - Displays the properties of root project 'ask_android'.
tasks - Displays the tasks runnable from root project 'ask_android'.

Install tasks
-------------
installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallRelease - Uninstalls the Release build.

Verification tasks
------------------
check - Runs all checks.
connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.
connectedCheck - Runs all device checks on currently connected devices.
connectedDebugAndroidTest - Installs and runs the tests for debug on connected devices.
deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers.
deviceCheck - Runs all device checks using Device Providers and Test Servers.
lint - Runs lint on all variants.
lintDebug - Runs lint on the Debug build.
lintRelease - Runs lint on the Release build.
test - Run unit tests for all variants.
testDebugUnitTest - Run unit tests for the debug build.
testReleaseUnitTest - Run unit tests for the release build.

Other tasks
-----------
jarDebugClasses
jarReleaseClasses
transformResourcesWithMergeJavaResForDebugUnitTest
transformResourcesWithMergeJavaResForReleaseUnitTest

Rules
-----
Pattern: clean<TaskName>: Cleans the output files of a task.
Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.

To see all tasks and more detail, run gradle tasks --all

To see more detail about a task, run gradle help --task <task>

BUILD SUCCESSFUL

Total time: 0.561 secs

Android Tasks


androidDependencies
signingReport
sourceSets

Build Tasks


assemble
assembleAndroidTest
assembleDebug
assembleRelease
build
buildDependents
buildNeeded
clean
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSource
compileReleaseSources
compileReleaseUnitTestSources
mockableAndroidJar

Build Setup Tasks


init
wrapper

Help Tasks


buildEnvironment
components
dependencies
dependencyInsight
help
model
projects
properties
tasks

Install Tasks


installDebug
installDebugAndroidTest
uninstallAll
uninstallDebug
uninstallDebugAndroidTest
uninstallRelease

Verification Tasks


check
connectedAndroidTest
connectedCheck
connectedDebugAndroidTest
deviceAndroidTest
deviceCheck
lint
lintDebug
lintRelease
test
testDebugUnitTest
testReleaseUnitTest

Orther Tasks


jarDebugClasses
jarReleaseClasses
transformResourcesWithMergeJavaResForDebugUnitTest
transformResourcesWithMergeJavaResForReleaseUnitTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment