我想在使用 swagger-codgen-maven-plugin 生成 REST 客户端时跳过 gradle 文件创建,是否有可以使用的选项或插件配置以便不生成 Gradle 和关联文件?
我的 pom.xml
<plugin>
<groupId>io.swagger.codgen.V3</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>3.0.21</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${basedir}/src/main/resources/test.yaml</inputSpec>
<language>java</language>
<library>resttemplate</library>
<output>{basedir}</output>
<apiPackage>com.restclient.api</apiPackage>
<modelPackage>com.restclient.model</modelPackage>
<invokerPackage>com.restclient.invoker</invokerPackage>
<generateApiTests>false</generateApiTests>
<generateModelTests>false</generateModelTests>
<generateApiDocumentation>false</generateApiDocumentation>
<generateModelDocumentation>false</generateModelDocumentation>
<configOptions>
<dateLibrary>java8</dateLibrary>
</configOptions>
</configuration>
</execution>
</executions>
午餐后 mvn clean install 我在我的项目根目录中发现了很多 Gradle 文件
__ my_project_root_directory
|__ README.md
|__ build.gradle
|__ build.sbt
|__ docs
|__ git_push.sh
|__ gradle
|__ gradle.properties
|__ gradlew
|__ gradlew.bat
|__ pom.xml
|__ settings.gradle
|__ src
|__ main
|__ java
|__ com.restclient.api