Converting maven project that uses plugins to a gradle project
<p>I'm new with Gradle and confused to change maven code to gradle, I get code from <a href="https://github.com/jgoodyear/ApacheKarafCookbook" rel="nofollow">ApacheKarafCookbook</a> and want to use gradle as build tool. I tried use <strong><em>gradle init</em></strong> and its not working.</p>

<pre><code>&lt;build&gt;
    &lt;plugins&gt;
        &lt;plugin&gt;
            &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
            &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
            &lt;version&gt;0.7.0.201403182114&lt;/version&gt;
            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;id&gt;prepare-agent-integration&lt;/id&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;prepare-agent-integration&lt;/goal&gt;
                    &lt;/goals&gt;
                    &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                    &lt;configuration&gt;
                        &lt;propertyName&gt;jcoverage.command&lt;/propertyName&gt;
                        &lt;includes&gt;
                            &lt;include&gt;com.packt.*&lt;/include&gt;
                        &lt;/includes&gt;
                        &lt;append&gt;true&lt;/append&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
                &lt;execution&gt;
                    &lt;id&gt;report&lt;/id&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;report-integration&lt;/goal&gt;
                    &lt;/goals&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
        &lt;/plugin&gt;
    &lt;/plugins&gt;
&lt;/build&gt;
</code></pre>

<p>How do I change to gradle?</p>