"clean" task pattern only works with at least one BasePlugin (java, ...)


(Mathias Kalb) #1
  1. Only plugin ‘project-report’
apply plugin: 'project-report'
  "gradle tasks" -> No pattern rules
"gradle projectReport" -> report files created
"gradle cleanProjectReport" -> Error 'Task not found'
  1. With ‘java’ plugin
apply plugin: 'project-report'
apply plugin: 'java'
  "gradle tasks" -> Show pattern rules
"gradle projectReport" -> report files created
"gradle cleanProjectReport" -> ":cleanProjectReport UP-TO-DATE" No files are deleted.

http://issues.gradle.org/browse/GRADLE-1370


(Peter Niederwieser) #2

“clean” task pattern only works with at least one BasePlugin (java, …)

Works as designed. The part related to the ‘project-report’ plugin is already tracked under GRADLE-1370. If you want to see this improved, please add your vote on the JIRA issue.