forked from loafle/openapi-generator-original
Use Released version in maven samples (#693)
* Fixing maven examples: set version to last released version and other improvements * Include example poms in the "release_version_update_docs.sh" script
This commit is contained in:
parent
0c52fcd5ff
commit
824654964b
@ -36,6 +36,9 @@ echo "IMPORTANT: this script works on Mac only"
|
|||||||
echo "Release preparation: replacing $FROM with $TO in different files"
|
echo "Release preparation: replacing $FROM with $TO in different files"
|
||||||
|
|
||||||
declare -a files=("modules/openapi-generator-maven-plugin/README.md"
|
declare -a files=("modules/openapi-generator-maven-plugin/README.md"
|
||||||
|
"modules/openapi-generator-maven-plugin/examples/java-client.xml"
|
||||||
|
"modules/openapi-generator-maven-plugin/examples/non-java-invalid-spec.xml"
|
||||||
|
"modules/openapi-generator-maven-plugin/examples/non-java.xml"
|
||||||
"modules/openapi-generator-gradle-plugin/README.adoc"
|
"modules/openapi-generator-gradle-plugin/README.adoc"
|
||||||
"modules/openapi-generator-gradle-plugin/samples/local-spec/gradle.properties"
|
"modules/openapi-generator-gradle-plugin/samples/local-spec/gradle.properties"
|
||||||
"modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle"
|
"modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle"
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.openapitools</groupId>
|
<groupId>org.openapitools</groupId>
|
||||||
<artifactId>openapi-generator-maven-plugin</artifactId>
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
||||||
<version>3.1.1-SNAPSHOT</version>
|
<version>3.1.2</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- specify the swagger yaml -->
|
<!-- specify the swagger yaml -->
|
||||||
<inputSpec>swagger.yaml</inputSpec>
|
<inputSpec>${project.basedir}/swagger.yaml</inputSpec>
|
||||||
|
|
||||||
<!-- target to generate java client code -->
|
<!-- target to generate java client code -->
|
||||||
<generatorName>java</generatorName>
|
<generatorName>java</generatorName>
|
||||||
@ -39,13 +39,22 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.6.1</version>
|
||||||
|
<configuration>
|
||||||
|
<source>1.7</source>
|
||||||
|
<target>1.7</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- dependencies are needed for the client being generated -->
|
<!-- dependencies are needed for the client being generated -->
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.openapitools</groupId>
|
<groupId>io.swagger</groupId>
|
||||||
<artifactId>swagger-annotations</artifactId>
|
<artifactId>swagger-annotations</artifactId>
|
||||||
<version>${swagger-annotations-version}</version>
|
<version>${swagger-annotations-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
@ -55,13 +64,8 @@
|
|||||||
|
|
||||||
<!-- HTTP client: jersey-client -->
|
<!-- HTTP client: jersey-client -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.glassfish.jersey.core</groupId>
|
<groupId>org.glassfish.jersey.core</groupId>
|
||||||
<artifactId>jersey-client</artifactId>
|
<artifactId>jersey-client</artifactId>
|
||||||
<version>${jersey-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.glassfish.jersey.media</groupId>
|
|
||||||
<artifactId>jersey-media-json-jackson</artifactId>
|
|
||||||
<version>${jersey-version}</version>
|
<version>${jersey-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -69,6 +73,11 @@
|
|||||||
<artifactId>jersey-media-multipart</artifactId>
|
<artifactId>jersey-media-multipart</artifactId>
|
||||||
<version>${jersey-version}</version>
|
<version>${jersey-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.glassfish.jersey.media</groupId>
|
||||||
|
<artifactId>jersey-media-json-jackson</artifactId>
|
||||||
|
<version>${jersey-version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- JSON processing: jackson -->
|
<!-- JSON processing: jackson -->
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -96,7 +105,7 @@
|
|||||||
<artifactId>jackson-jaxrs-json-provider</artifactId>
|
<artifactId>jackson-jaxrs-json-provider</artifactId>
|
||||||
<version>${jackson-version}</version>
|
<version>${jackson-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Joda time: if you use it -->
|
<!-- Joda time: if you use it -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||||
@ -107,19 +116,19 @@
|
|||||||
<groupId>joda-time</groupId>
|
<groupId>joda-time</groupId>
|
||||||
<artifactId>joda-time</artifactId>
|
<artifactId>joda-time</artifactId>
|
||||||
<version>${jodatime-version}</version>
|
<version>${jodatime-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Base64 encoding that works in both JVM and Android -->
|
<!-- Base64 encoding that works in both JVM and Android -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.brsanthu</groupId>
|
<groupId>com.brsanthu</groupId>
|
||||||
<artifactId>migbase64</artifactId>
|
<artifactId>migbase64</artifactId>
|
||||||
<version>2.2</version>
|
<version>2.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<swagger-annotations-version>1.5.8</swagger-annotations-version>
|
<swagger-annotations-version>1.5.8</swagger-annotations-version>
|
||||||
<jersey-version>2.22.2</jersey-version>
|
<jersey-version>2.27</jersey-version>
|
||||||
<jackson-version>2.8.9</jackson-version>
|
<jackson-version>2.8.9</jackson-version>
|
||||||
<jodatime-version>2.7</jodatime-version>
|
<jodatime-version>2.7</jodatime-version>
|
||||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
<maven-plugin-version>1.0.0</maven-plugin-version>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.openapitools</groupId>
|
<groupId>org.openapitools</groupId>
|
||||||
<artifactId>openapi-generator-maven-plugin</artifactId>
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
||||||
<version>3.1.1-SNAPSHOT</version>
|
<version>3.1.2</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<validateSpec>false</validateSpec>
|
<validateSpec>false</validateSpec>
|
||||||
<inputSpec>petstore-v3.0-invalid.yaml</inputSpec>
|
<inputSpec>${project.basedir}/petstore-v3.0-invalid.yaml</inputSpec>
|
||||||
<generatorName>aspnetcore</generatorName>
|
<generatorName>aspnetcore</generatorName>
|
||||||
<configOptions>
|
<configOptions>
|
||||||
<additional-properties>optionalProjectFile=true</additional-properties>
|
<additional-properties>optionalProjectFile=true</additional-properties>
|
||||||
|
@ -12,14 +12,14 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.openapitools</groupId>
|
<groupId>org.openapitools</groupId>
|
||||||
<artifactId>openapi-generator-maven-plugin</artifactId>
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
||||||
<version>3.1.1-SNAPSHOT</version>
|
<version>3.1.2</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>generate</goal>
|
<goal>generate</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<inputSpec>swagger.yaml</inputSpec>
|
<inputSpec>${project.basedir}/swagger.yaml</inputSpec>
|
||||||
<generatorName>aspnetcore</generatorName>
|
<generatorName>aspnetcore</generatorName>
|
||||||
<configOptions>
|
<configOptions>
|
||||||
<additional-properties>optionalProjectFile=true</additional-properties>
|
<additional-properties>optionalProjectFile=true</additional-properties>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user