How to clean buildSrc dir from root project in Gradle?
There is no way to do this (but you shouldn't ever have to clean buildSrc
).
Since buildSrc
is just a gradle project, you can start gradle in buildSrc
folder with clean
task specified using -p
gradle option:
./gradlew -p buildSrc clean
Unfortunately it still requires another gradle invocation before your main build.