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:
Jérémie Bresson 2018-07-31 06:32:24 +02:00 committed by GitHub
parent 0c52fcd5ff
commit 824654964b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 18 deletions

View File

@ -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"

View File

@ -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>
@ -61,12 +70,12 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.glassfish.jersey.media</groupId> <groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId> <artifactId>jersey-media-multipart</artifactId>
<version>${jersey-version}</version> <version>${jersey-version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.glassfish.jersey.media</groupId> <groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-multipart</artifactId> <artifactId>jersey-media-json-jackson</artifactId>
<version>${jersey-version}</version> <version>${jersey-version}</version>
</dependency> </dependency>
@ -119,7 +128,7 @@
<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>

View File

@ -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>

View File

@ -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>