diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ff0eaa10..7609d727 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -58,9 +58,11 @@ section of the sbt manual for publishing to Maven Central via Sonatype. Create a staging release in Sonatype: ``` +$ export OLD_VERSION=5.0.0-M6 +$ export NEW_VERSION=5.0.0-M7 $ nix-shell $ sbt -> set ThisBuild / version := "5.0.0-M4" +> set ThisBuild / version := sys.env("NEW_VERSION") > publishSigned ``` @@ -84,17 +86,17 @@ Wait for it to be synced to Maven Central: Update the documentation: ``` -$ git checkout -b v5.0.0-M4 -$ sed -i 's/4\.2\.2/5.0.0-M4/g' README.md +$ git checkout -b v$NEW_VERSION +$ sed -i "s/$OLD_VERSION/$NEW_VERSION/g" README.md $ git add README.md -$ git commit -m "Update version to 5.0.0-M4" -$ git push origin v5.0.0-M4 +$ git commit -m "sbt-war: $OLD_VERSION -> $NEW_VERSION +$ git push origin v$NEW_VERSION ``` Tag the release: ``` -$ git tag 5.0.0-M4 +$ git tag $NEW_VERSION $ git push --tags origin ``` diff --git a/README.md b/README.md index 00ee304d..bbbfe546 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ sbt.version=1.10.2 *project/plugins.sbt:* ```scala -addSbtPlugin("com.earldouglas" % "sbt-war" % "5.0.0-M6") +addSbtPlugin("com.earldouglas" % "sbt-war" % "5.0.0-M7") ``` *build.sbt:*