Skip to content
This repository was archived by the owner on Oct 24, 2020. It is now read-only.

Commit c7d767e

Browse files
authored
Simplify release operations (#31)
* Remove versions-maven-plugin * Remove the dryRun option * Enable the autoReleaseAfterClose option * Update RELEASE_OPERATIONS.md
1 parent ade2c56 commit c7d767e

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

RELEASE_OPERATIONS.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,22 @@ Run the Maven `release:prepare` goal:
77
```
88
$ git checkout master
99
$ git pull
10-
$ ./mvnw --batch-mode -DdryRun=true -DreleaseVersion=1.0.0 -DdevelopmentVersion=999-SNAPSHOT release:clean release:prepare
10+
$ ./mvnw --batch-mode -DreleaseVersion=1.0.0 -DdevelopmentVersion=999-SNAPSHOT release:clean release:prepare
1111
```
1212

1313
The value of `releaseVersion` is decided by the draft name of
1414
[Releases](https://github.com/domaframework/doma-quarkus/releases).
1515

16-
1716
## Build with GitHub Action
1817

1918
The GitHub Action workflow [Java CI with Maven](.github/workflows/ci.yml) handles the above push event.
2019

2120
The workflow builds the "doma-quarkus-parent", the "doma-quarkus-deployment" and the "doma-quarkus" artifacts
22-
and pushes them to Maven Central[Sonatype OSSRH](https://central.sonatype.org/pages/ossrh-guide.html).
21+
and pushes them to [Sonatype OSSRH](https://central.sonatype.org/pages/ossrh-guide.html).
2322

2423
## Publish artifacts to Maven Central
2524

26-
Follow the instructions below:
27-
28-
- Open [Nexus Repository Manager](https://oss.sonatype.org/).
29-
- Log in to the manager.
30-
- Select "Staging Repositories" from the side menu.
31-
- Check the repository of Doma.
32-
- Push the "Release" button.
25+
The Nexus Staging Maven Plugin handles this process.
3326

3427
In a few minutes, all artifacts are copied to the [Maven Central Repository](https://repo1.maven.org/).
3528

pom.xml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
<source-plugin.version>3.2.1</source-plugin.version>
4444
<javadoc-plugin.version>3.2.0</javadoc-plugin.version>
4545
<gpg-plugin.version>1.6</gpg-plugin.version>
46-
<versions-plugin.version>2.8.1</versions-plugin.version>
4746
<nexus-staging-plugin.version>1.6.8</nexus-staging-plugin.version>
4847
<release-plugin.version>3.0.0-M1</release-plugin.version>
4948
</properties>
@@ -137,7 +136,7 @@
137136
<configuration>
138137
<serverId>ossrh</serverId>
139138
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
140-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
139+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
141140
</configuration>
142141
</plugin>
143142
</plugins>
@@ -174,11 +173,6 @@
174173
<tagNameFormat>v@{project.version}</tagNameFormat>
175174
</configuration>
176175
</plugin>
177-
<plugin>
178-
<groupId>org.codehaus.mojo</groupId>
179-
<artifactId>versions-maven-plugin</artifactId>
180-
<version>${versions-plugin.version}</version>
181-
</plugin>
182176
</plugins>
183177
</pluginManagement>
184178
</build>

0 commit comments

Comments
 (0)