Run a single Gradle task without dependency tasks

300 views Asked by At

What are ways to minimize Gradle runtime when running a single task that is known to have no task dependencies on a project containing many sub-projects (over 100) where just configuration phase takes over 80 seconds? Most time is wasted in configuration phase, configuring tasks that are known not to be executed.

I'm aware of --exclude-task that allows to exclude a task from running. However this seems a bit clumsy since I'd like to exclude all but one task.

There is also a Configuration cache however it is still an incubation effort (as of version 7.4.2) and it conflicts with some used features like Gradle.addBuildListener.

0

There are 0 answers