So far i\'ve added the following to my build.gradle
apply plugin: \'base\'
clean << {
delete \'${rootDir}/api-library/auto-generated-classes/\'
pr
In order to extend the clean task, you can use
clean.doFirst {}
or
clean.doLast {}
These will allow you to inject your own actions into the clean process. In order to delete files and directories you can use the "file" API which doesn't require any additional plugins.
Here is an example that will delete both a file and a directory as the last step in the clean task:
clean.doLast {
file('src/main/someFile.txt').delete()
file('src/main/libs').deleteDir()
}