Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed May 11, 2024
1 parent 0156e9a commit 9caf0a4
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down

0 comments on commit 9caf0a4

Please sign in to comment.