diff --git a/CI/post-release-v1.sh b/CI/post-release-v1.sh index d849ec25..b16b1c06 100755 --- a/CI/post-release-v1.sh +++ b/CI/post-release-v1.sh @@ -15,3 +15,15 @@ python $CUR/CI/publishReleaseV1.py "$SC_RELEASE_TAG" ##################### mvn versions:set -DnewVersion="${SC_NEXT_VERSION}-SNAPSHOT" mvn versions:commit + +##################### +### update all other versions in files around to the new release, including readme ### +##################### +sc_find="$SC_VERSION" +sc_replace="${SC_NEXT_VERSION}-SNAPSHOT" +sed -i -e "s/$sc_find/$sc_replace/g" $CUR/README.md + +sc_find="$SC_VERSION<\/version>" +sc_replace="${SC_NEXT_VERSION}-SNAPSHOT<\/version>" +sed -i -e "s/$sc_find/$sc_replace/g" $CUR/scripts/pom.xml + diff --git a/README.md b/README.md index afd9e5ab..94dad488 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,7 @@ # Swagger Inflector -[![Build Status](https://img.shields.io/jenkins/build.svg?jobUrl=https://jenkins.swagger.io/job/oss-swagger-inflector-v1)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-inflector-v1) - [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-inflector/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-inflector) -[![Build Status](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-inflector-v1/badge/icon?subject=jenkins%20build)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-inflector-v1/) - ---- **NOTE:** If you're looking for `swagger-inflector` 2.X and OpenApi 3.0, please refer to [master branch](https://github.com/swagger-api/swagger-inflector) diff --git a/scripts/pom.xml b/scripts/pom.xml index ee00c9d6..25dfdfd2 100644 --- a/scripts/pom.xml +++ b/scripts/pom.xml @@ -170,7 +170,7 @@ io.swagger swagger-inflector - 1.0.25 + 1.0.26-SNAPSHOT