0
我是新來的Gradle,並且困惑着將maven代碼改爲gradle,我從ApacheKarafCookbook獲得代碼,並且希望使用gradle作爲構建工具。我嘗試使用gradle init並且它不工作。將使用插件的maven項目轉換爲gradle項目
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.0.201403182114</version>
<executions>
<execution>
<id>prepare-agent-integration</id>
<goals>
<goal>prepare-agent-integration</goal>
</goals>
<phase>pre-integration-test</phase>
<configuration>
<propertyName>jcoverage.command</propertyName>
<includes>
<include>com.packt.*</include>
</includes>
<append>true</append>
</configuration>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report-integration</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
如何更改爲gradle?
什麼是不工作?請閱讀[如何創建最小,完整和可驗證的示例](http://stackoverflow.com/help/mcve)和[我如何提出一個好問題?](http://stackoverflow.com/help/如何對問)。然後,更新並*改進您的問題*。 –