Skip to content

Commit 0453e64

Browse files
wing328jimschubert
authored andcommitted
Prepare 3.0.1 release (#280)
* add new bash script for release version update * update version using the bash script * Fix shippable build Modify `artifactId` of `CI/pom.xml.shippable` to be `openapi-generator-shippable-pom` * Comment ensure-up-to-date * add shippable to the release script * Updates README based on new release changes (#271) The release management changes moved from maven-publish (newer plugin) to maven (older plugin, only one that works currently with signing). This updates docs in the samples/local-spec project with current directions. Also: * Includes sonatype releases/snapshots on repo lookup * Adds openApiGeneratorVersion property
1 parent 0a479f7 commit 0453e64

File tree

21 files changed

+105
-24
lines changed

21 files changed

+105
-24
lines changed

CI/pom.xml.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<artifactId>openapi-generator-project</artifactId>
1010
<packaging>pom</packaging>
1111
<name>openapi-generator-project</name>
12-
<version>3.0.1-SNAPSHOT</version>
12+
<version>3.0.1</version>
1313
<url>https://github.com/openapi-tools/openapi-generator</url>
1414
<scm>
1515
<connection>scm:git:[email protected]:openapi-tools/openapi-generator.git</connection>

CI/pom.xml.circleci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<artifactId>openapi-generator-project</artifactId>
1111
<packaging>pom</packaging>
1212
<name>openapi-generator-project</name>
13-
<version>3.0.1-SNAPSHOT</version>
13+
<version>3.0.1</version>
1414
<url>https://github.com/openapitools/openapi-generator</url>
1515
<scm>
1616
<connection>scm:git:[email protected]:openapitools/openapi-generator.git</connection>

CI/pom.xml.circleci.java7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<artifactId>openapi-generator-project</artifactId>
1111
<packaging>pom</packaging>
1212
<name>openapi-generator-project</name>
13-
<version>3.0.1-SNAPSHOT</version>
13+
<version>3.0.1</version>
1414
<url>https://github.com/openapitools/openapi-generator</url>
1515
<scm>
1616
<connection>scm:git:[email protected]:openapitools/openapi-generator.git</connection>

CI/pom.xml.ios

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<artifactId>openapi-generator-project</artifactId>
1010
<packaging>pom</packaging>
1111
<name>openapi-generator-project</name>
12-
<version>3.0.1-SNAPSHOT</version>
12+
<version>3.0.1</version>
1313
<url>https://github.com/openapitools/openapi-generator</url>
1414
<scm>
1515
<connection>scm:git:[email protected]:openapitools/openapi-generator.git</connection>

CI/pom.xml.shippable

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
</parent>
77
<modelVersion>4.0.0</modelVersion>
88
<groupId>org.openapitools</groupId>
9-
<artifactId>openapi-generator-project</artifactId>
9+
<artifactId>openapi-generator-shippable-pom</artifactId>
1010
<packaging>pom</packaging>
11-
<name>openapi-generator-project</name>
12-
<version>3.0.1-SNAPSHOT</version>
11+
<name>openapi-generator-shippable-pom</name>
12+
<version>3.0.1</version>
1313
<url>https://github.com/openapitools/openapi-generator</url>
1414
<scm>
1515
<connection>scm:git:[email protected]:openapitools/openapi-generator.git</connection>
@@ -858,10 +858,7 @@
858858
</profile>
859859
</profiles>
860860
<modules>
861-
<module>../modules/openapi-generator</module>
862-
<module>../modules/openapi-generator-cli</module>
863-
<module>../modules/openapi-generator-maven-plugin</module>
864-
<module>../modules/openapi-generator-online</module>
861+
<module>../</module>
865862
</modules>
866863
<reporting>
867864
<outputDirectory>target/site</outputDirectory>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ OpenAPI Generator Version | Release Date | OpenAPI Spec compatibility | Notes
7676
---------------------------- | ------------ | -------------------------- | -----
7777
4.0.0 (upcoming major release) | TBD | 1.0, 1.1, 1.2, 2.0, 3.0 | Major release with breaking changes (no fallback)
7878
3.1.0 (upcoming minor release) | TBD | 1.0, 1.1, 1.2, 2.0, 3.0 | Minor release with breaking changes (with fallbacks)
79-
3.0.1 (current master, upcoming release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/3.0.1-SNAPSHOT/)| TBD | 1.0, 1.1, 1.2, 2.0, 3.0 | Bug fixes release
79+
3.0.1 (current master, upcoming release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/3.0.1/)| TBD | 1.0, 1.1, 1.2, 2.0, 3.0 | Bug fixes release
8080
3.0.0 | 01.06.2018 | 1.0, 1.1, 1.2, 2.0, 3.0 | First release with breaking changes
8181

8282
### [1.2 - Artifacts on Maven Central](#table-of-contents)
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/bin/bash
2+
#
3+
# usage: ./bin/utils/release_version_update.sh 3.0.1-SNAPSHOT 3.0.1
4+
#
5+
# Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
20+
if [[ "$1" != "" ]]; then
21+
FROM="$1"
22+
else
23+
echo "Missing argument. Usage e.g.: ./bin/utils/release_version_update.sh 3.0.1-SNAPSHOT 3.0.1"
24+
exit 1;
25+
fi
26+
27+
if [[ "$2" != "" ]]; then
28+
TO="$2"
29+
else
30+
echo "Missing argument. Usage e.g.: ./bin/utils/release_version_update.sh 3.0.1-SNAPSHOT 3.0.1"
31+
exit 1;
32+
fi
33+
34+
35+
echo "IMPORTANT: this script works on Mac only"
36+
echo "Release preparation: replacing $FROM with $TO in different files"
37+
38+
declare -a files=("CI/pom.xml.bash"
39+
"CI/pom.xml.circleci"
40+
"CI/pom.xml.circleci.java7"
41+
"CI/pom.xml.ios"
42+
"CI/pom.xml.shippable"
43+
"modules/openapi-generator-cli/pom.xml"
44+
"modules/openapi-generator-gradle-plugin/README.adoc"
45+
"modules/openapi-generator-gradle-plugin/gradle.properties"
46+
"modules/openapi-generator-gradle-plugin/pom.xml"
47+
"modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle"
48+
"modules/openapi-generator-maven-plugin/pom.xml"
49+
"modules/openapi-generator-online/pom.xml"
50+
"modules/openapi-generator/pom.xml"
51+
"modules/openapi-generator-online/Dockerfile"
52+
"pom.xml"
53+
"README.md")
54+
55+
for filename in "${files[@]}"; do
56+
# e.g. sed -i '' "s/3.0.1-SNAPSHOT/3.0.1/g" CI/pom.xml.bash
57+
#echo "Running command: sed -i '' "s/$FROM/$TO/g" $filename"
58+
if sed -i '' "s/$FROM/$TO/g" $filename; then
59+
echo "Updated $filename successfully!"
60+
else
61+
echo "ERROR: Failed to update $filename with the following command"
62+
echo "sed -i '' \"s/$FROM/$TO/g\" $filename"
63+
fi
64+
done

modules/openapi-generator-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.openapitools</groupId>
55
<artifactId>openapi-generator-project</artifactId>
6-
<version>3.0.1-SNAPSHOT</version>
6+
<version>3.0.1</version>
77
<relativePath>../..</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

modules/openapi-generator-gradle-plugin/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ buildscript {
3434
mavenCentral()
3535
}
3636
dependencies {
37-
classpath "org.openapitools:openapi-generator-gradle-plugin:3.0.1-SNAPSHOT"
37+
classpath "org.openapitools:openapi-generator-gradle-plugin:3.0.1"
3838
}
3939
}
4040

modules/openapi-generator-gradle-plugin/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ buildscript {
55
maven {
66
url "https://plugins.gradle.org/m2/"
77
}
8+
maven {
9+
url "https://oss.sonatype.org/content/repositories/releases/"
10+
}
11+
maven {
12+
url "https://oss.sonatype.org/content/repositories/snapshots/"
13+
}
814
}
915
dependencies {
1016
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
@@ -35,6 +41,12 @@ targetCompatibility = 1.8
3541
repositories {
3642
mavenCentral()
3743
mavenLocal()
44+
maven {
45+
url "https://oss.sonatype.org/content/repositories/releases/"
46+
}
47+
maven {
48+
url "https://oss.sonatype.org/content/repositories/snapshots/"
49+
}
3850
}
3951

4052
dependencies {

0 commit comments

Comments
 (0)