diff --git a/README.md b/README.md index 7cbba97..c096c82 100644 --- a/README.md +++ b/README.md @@ -353,13 +353,17 @@ P.S. this flag can be deprecated in future when most of the users migrate to the ## Release -Define two environment variables before starting SBT shell: +Create SBT file at ~/.sbt/1.0/sonatype.sbt with the following content: ```bash -export SONATYPE_USERNAME= -export SONATYPE_PASSWORD= +credentials += Credentials("Sonatype Nexus Repository Manager", + "s01.oss.sonatype.org", + "", + "") ``` +replace values with your access token user name and password. + Release new version: ```bash @@ -369,7 +373,7 @@ sh release.sh Increment to next SNAPSHOT version and push to Git server: ```bash -RELEASE_PUBLISH=true sbt 'release with-defaults' +RELEASE_PUBLISH=true sbt "; project scala-api; release with-defaults" ``` ## License diff --git a/release.sh b/release.sh index 824323e..bca8c5b 100644 --- a/release.sh +++ b/release.sh @@ -1,6 +1,6 @@ #!/bin/bash set -ex -RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.18.1 test 'release with-defaults' -RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.19.1 test 'release with-defaults' -RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.20.0 test 'release with-defaults' +RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.18.1 -Dgpg.passphrase="" test "; project scala-api; release with-defaults" +RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.19.1 -Dgpg.passphrase="" test "; project scala-api; release with-defaults" +RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.20.0 -Dgpg.passphrase="" test "; project scala-api; release with-defaults" wait \ No newline at end of file