diff --git a/docs/index.md b/docs/index.md index b8da0f02c..59b2d2f5e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -762,31 +762,24 @@ When developing, build fast with: ### Releasing a version -Example: `4.0.rc1` - ```bash +# Example: 4.0.rc1 ./mvnw release:prepare -DreleaseVersion=4.0.rc1 -Dtag=license-maven-plugin-4.0.rc1 -DdevelopmentVersion=4.0-SNAPSHOT -./mvnw release:perform -Darguments="-Dgpg.keyname=EDEA921A -Dmaven.site.deploy.skip=true" + +# Example: 4.0 +./mvnw release:prepare -DreleaseVersion=4.0 -Dtag=license-maven-plugin-4.0 -DdevelopmentVersion=4.1-SNAPSHOT ``` -Example: `4.2.rc2` +Then: ```bash -./mvnw release:prepare -DreleaseVersion=4.2.rc2 -Dtag=license-maven-plugin-4.2.rc2 -DdevelopmentVersion=4.2-SNAPSHOT +export MAVEN_GPG_PASSPHRASE=... ./mvnw release:perform -Darguments="-Dgpg.keyname=EDEA921A -Dmaven.site.deploy.skip=true" -``` -Example: `4.0` - -```bash -./mvnw release:prepare -DreleaseVersion=4.0 -Dtag=license-maven-plugin-4.0 -DdevelopmentVersion=4.1-SNAPSHOT -./mvnw release:perform -Darguments="-Dgpg.keyname=EDEA921A -Dmaven.site.deploy.skip=true -Dgpg.useAgent=true" +# If the release perform fails, restart it with (from the target/checkout folder): +`./mvnw deploy -Dgpg.keyname=EDEA921A -Dmaven.site.deploy.skip=true -DperformRelease=true` ``` -If the release perform fails, restart it with (from the target/checkout folder): - -`./mvnw deploy -Prelease -Dgpg.keyname=EDEA921A -Dmaven.site.deploy.skip=true -Dgpg.useAgent=false -DperformRelease=true -Dgpg.passphrase=...` - Then, go to https://oss.sonatype.org/ to "close and release". Then you should see a few minutes later the new version at https://repo1.maven.org/maven2/com/mycila/license-maven-plugin/