The following command works:
gradle build -x test
it according with Gradle build without tests.
I read the Excluding tasks from execution section and indicates:
You can exclude a task from being executed using the
--exclude-taskcommand-line option and providing the name of the task to exclude.
It is reflected in the first link. Until here, all is ok. But …
My questions are:
One: if I want exclude more tasks (for example
javadoc), how should be the command?
gradle build -x javadoc -x testor
gradle build -x javadoc test?
-x for each task to exclude? (former case) or use just one
-x for all the tasks to exclude? (latter case)
Two Does the order of tasks matter?, so
- is the same
gradle build -x javadoc -x testand
gradle build -x test -x javadoc?,
perhaps exists a special scenario.