尝试在Gradle中使用自定义Maven插件

时间:2020-07-02 10:59:31

标签: java maven gradle maven-plugin gradle-plugin

请帮助将pom.xml的部分转换为build.gradle

<plugin>
                <groupId>com.company.argus</groupId>
                <artifactId>argus-generator-maven-plugin</artifactId>
                <version>1.2.0</version>
                <configuration>
                    <clientConfigurationSet>
                        <resourceWriterClass>com.company.argus.gen.client.core.java.ServiceClientJavaResourceWriter</resourceWriterClass>
                        <configurationClass>company.cms.variants.configuration.ClientGeneralConfiguration</configurationClass>
                        <targetFile>src/main/java-gen/</targetFile>
                        <clients>
                            <client>
                                <serviceName>oberon</serviceName>
                                <podName>AssetResource</podName>
                                <majorVersion>1</majorVersion>
                                <minorVersion>0</minorVersion>
                            </client>
                        </clients>
                    </clientConfigurationSet>
                </configuration>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>argus</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>com.company.argus</groupId>
                        <artifactId>client-gen-java</artifactId>
                        <version>${argus.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>com.company.argus</groupId>
                        <artifactId>gen-core</artifactId>
                        <version>${argus.version}</version>
                    </dependency>
                </dependencies>
            </plugin>

我想知道是否可以在gradle中使用Maven插件?我必须编写一个蚂蚁脚本并调用它吗?

0 个答案:

没有答案