title: How can we create a build.gradle equivalent file for pom.xml to build and deploy AEM code?
body: <p>I'm trying to create a <strong>build.gradle</strong> file like the complete pom.xml for <a href="https://github.com/Adobe-Marketing-Cloud/aem-project-archetype" rel="nofollow noreferrer">AEM Maven Archetype</a> or <a href="https://github.com/Adobe-Consulting-Services/lazybones-aem-templates" rel="nofollow noreferrer">Lazybones Template</a> to build and deploy the code to AEM. </p>
  
  <ul>
  <li><p>I tried to use <a href="https://github.com/TWCable/gradle-plugin-cq-bundle" rel="nofollow noreferrer">TWCCable's CQ Plugin</a> but wasn't sure how to use
  it. </p></li>
  <li><p>Also tried to run <strong>gradle init</strong> on the main pom.xml but obviously it was incomplete (below) and i think i'll have to add all dependencies manually.</p>
  
  <pre><code>allprojects  {
    apply plugin: 'maven'
    group = 'com.project2'
    version = '1.0-SNAPSHOT'
  }
  subprojects {
    apply plugin: 'java'
    sourceCompatibility = 1.6
    targetCompatibility = 1.6
  
    repositories {
      mavenLocal()
      maven { url "https://repo.adobe.com/nexus/content/groups/public" }
      maven { url "http://repo.maven.apache.org/maven2" }
    }
    configurations.all {
    }
  }
  </code></pre></li>
  </ul>
  
  <p>Is there any example file that i could use? My goal is to use <strong>gradle build</strong> instead of using <strong>mvn clean install -PautoInstallPackage</strong> , not sure if i can even do it?</p>
  
  <p>Appreciate your thoughts.</p>