title: Calling a Gradle Custom Task at any compile execution
body: <p>Hi am writing a Gradle custom plugin.</p>
  
  <p>1) I am creating a Task in my plugin and i want that task to be called when any of compile task is called.</p>
  
  <p>say user may call compileJava, compileJava etc</p>
  
  <p>OR
  2) Can i call when user invokes gradle war  task. instead of gradle warMyFiles</p>
  
  <p>I want to invoke my plugin taks on any of this these compile task</p>
  
  <p>i normally set the task into my plugin like this</p>
  
  <p>...
  CompileMyFilesTask compileMyFiles = project.tasks.add(COMPILE_MYFILES_TASK_NAME, CompileMyFilesTask.class)
          compileMyFiles.dependsOn(WarPlugin.WAR_TASK_NAME)   // or JavaPlugin.COMPILE_...
          compileMyFiles.description = "Compile MyFiles"
          compileMyFiles.group = "MyFiles"
  ...</p>