Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Alias a task name in Gradle

The following snippet is how to alias a task name in Gradle:


    // You can now run "gradle alias" and it would be equivalent to running "gradle taskToAlias"
    task alias {
        dependsOn allprojects.collect { proj ->
            proj.tasks.matching {
       == 'taskToAlias'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment