Question: For fust build project I use such command

```
gradle clean build -x checkstyleMain -x checkstyleTest -x findbugsMain -x findbugsTest -x test

```

How I can create short task for this?
Something like this

```
task short {
  clean
//  build-x checkstyleMain -x checkstyleTest -x findbugsMain -x findbugsTest -x test
}

```

I have error with **-x**

**UPDATE**

I add such 

```
gradle.taskGraph.whenReady {
  if (gradle.taskGraph.hasTask(":fastRun")) {
    checkstyleMain.enabled = false
    checkstyleTest.enabled = false
    findbugsMain = fasle
    findbugsTest = false
    test = false
  }
}

task fastRun {
//  clean
//  build
}

```

And run

gradle clean build fastRun

But all tasks run =(

Answer: 
Gradle is not lifecycle based the way Maven is. Instead of asking for a task that includes all these other tasks you do not want to do, you are better off finding a task that does what you want *without* including all these others.

For example, assuming you are using the `java` plugin:

1. `assemble`: will create all archives in the project, but not run any tests or checks
2. `compileTestJava`: will compile all main and test Java classes but will not run tests or create binaries. Unless their creation is required by a different project in a multi-project build.
3. `???`: some task that maybe does exactly what you want

And if point 3 has no answer for you, you can define a new task that will depend only on what you want to achieve and not the rest.

See the [Java plugin documentation](https://docs.gradle.org/current/userguide/java_plugin.html) for an exhaustive list of the tasks added, including the high level ones.
You can add the following codes to skip the tasks,

```
gradle.startParameter.excludedTaskNames += "testClasses"
gradle.startParameter.excludedTaskNames += "test"

```