mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
b6b8c0db87
* [gradle-plugin] Initial commit * Clarify comments on file constraints When a user sets the models, apis, or supportingFiles environment variables, any one of these being set disables generation for the other two. This could be confusing to users, so I've added some clarification text in the comments for these properties. In addition, I've cleaned up the extension on Property.ifNotEmpty, to avoid using Suppress annotations where it's not necessary. The change creates a local variable of type T?, allowing Kotlin to track the variable's nullable state at compile time. * Move gradle plugin under modules * Move kt files under kotlin source set. Add sample. * [gradle] map-like options as maps * Add tests for gradle validate task * Apply gradle plugin to mvn install phase * [gradle] Testing remaining gradle tasks * Add gradle plugin to the integration doc * Update gradle plugin README with task options * Gradle readme formatting
60 lines
2.2 KiB
XML
60 lines
2.2 KiB
XML
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
<parent>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>openapi-generator-project</artifactId>
|
|
<version>3.0.0-SNAPSHOT</version>
|
|
<relativePath>../..</relativePath>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>openapi-generator-gradle-plugin</artifactId>
|
|
|
|
<name>openapi-generator-gradle-plugin (gradle-plugin)</name>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>openapi-generator</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<!-- NOTE: Consider this temporary, as a way to cleanly hook into our pipeline.
|
|
We've discussed moving the entire project to gradle, which would avoid this fitting. -->
|
|
<plugin>
|
|
<groupId>org.fortasoft</groupId>
|
|
<artifactId>gradle-maven-plugin</artifactId>
|
|
<version>1.0.8</version>
|
|
<configuration>
|
|
<gradleVersion>4.7</gradleVersion>
|
|
<args>
|
|
<arg>-P openApiGeneratorVersion=${project.version}</arg>
|
|
</args>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<!-- goal must be "invoke" -->
|
|
<goal>invoke</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<!-- calls "clean build publishToMavenLocal" -->
|
|
<task>clean</task>
|
|
<task>build</task>
|
|
<task>publishToMavenLocal</task>
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|