how do I exclude a task from another task?
# gradle
b
how do I exclude a task from another task?
b
gradlew someTask -x anotherTask
b
not via command line
globally for every run
b
do not use build then, try to just assemble
b
intellij calls build afaik
and other tools
b
you can try to disable test tasks:
Copy code
tasks.whenTaskAdded { task ->
    if (task.name.contains("Test")) {
        task.enabled = false
    }
}
b
will I still be able to run ./gradle test though
also this example doesn't compile