title: license-gradle-plugin
body: <p>Thanks to reply, I am searching to apply License-gradle-plugin to check headers in my source code.please give me the full script.</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
  
      dependencies {
          classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5.0'
      }
  }
  
  apply plugin: 'license'
  </code></pre>
  
  <p>I have used this code in my <code>build.gradle</code>, but It is not updating headers in my all source file <code>src/main/*.groovy files</code>. How can I write build script to check is Header exists in the <code>.groovy</code> files if not write header in the groovy files?</p>
  
  <p>Thanks,
  kothapeta Raju.</p>
  
  <hr>
  
  <p>I tried as you said but getting the following exception</p>
  
  <p>FAILURE: Could not determine which tasks to execute.</p>
  
  <ul>
  <li><p>What went wrong:
  Task 'licenseFormatMain' not found in root project 'license-gradle-plugin-master'.</p></li>
  <li><p>Try:
  Run gradle tasks to get a list of available tasks.</p></li>
  </ul>
  
  <p>BUILD FAILED</p>
  
  <p>Thanks,
  Raju.</p>