【发布时间】:2018-01-17 09:19:07
【问题描述】:
我需要在 gradle 项目中使用下面的 maven 插件。请给出一些想法如何在 gradle 中转换?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
<executions>
<execution>
<id>main</id>
<goals>
<goal>java</goal>
</goals>
</execution>
<execution>
<id>test</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>make</executable>
<arguments>
<argument>test</argument>
</arguments>
</configuration>
</execution>
</executions>
<configuration>
<mainClass>com.service.main.TWAService</mainClass>
</configuration>
</plugin>
请给我一些想法,我可以在 gradle 中做些什么。
【问题讨论】: