Skip to content

Commit 0092d2f

Browse files
committed
trying to upgrade to new release process
1 parent b7fb9d4 commit 0092d2f

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

.github/workflows/release-ossrh.yml renamed to .github/workflows/release-maven.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
with: # overwrite settings.xml
2525
distribution: "zulu"
2626
java-version: 21
27-
server-id: ossrh
28-
server-username: OSSRH_USERNAME
29-
server-password: OSSRH_PASSWORD
27+
server-id: central
28+
server-username: MAVEN_CENTRAL_USERNAME
29+
server-password: MAVEN_CENTRAL_PASSWORD
3030
gpg-private-key: ${{ secrets.MAVEN_GPG_KEY }}
3131
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3232

@@ -39,8 +39,8 @@ jobs:
3939
run: mvn -B -Prelease --file pom.xml deploy
4040
env:
4141
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
42-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
43-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
42+
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
43+
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
4444

4545
- name: Extract release notes
4646
uses: ffurrer2/extract-release-notes@v2

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased] - 2025-xx-xx
44

5+
## [2.14.0] - 2025-xx-xx
6+
7+
- Upgraded to ASM 9.9
8+
- New release process
9+
510
## [2.13.0] - 2025-06-14
611

712
- Upgraded to ASM 9.8

RELEASE.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@
99
- push and wait for build
1010
- create tag jdependency-VERSION
1111
- push and wait for build
12-
- login to https://oss.sonatype.org/
13-
- staging repositories
14-
- close
15-
- release

pom.xml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<modelVersion>4.0.0</modelVersion>
1414
<groupId>org.vafer</groupId>
1515
<artifactId>jdependency</artifactId>
16-
<version>2.13</version>
16+
<version>2.14</version>
1717
<name>jdependency</name>
1818
<description>This project provides an API to analyse class dependencies</description>
1919
<url>http://github.com/tcurdt/jdependency</url>
@@ -53,8 +53,8 @@
5353
</scm>
5454
<distributionManagement>
5555
<repository>
56-
<id>ossrh</id>
57-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
56+
<id>central</id>
57+
<url>https://central.sonatype.com/api/v1/publisher</url>
5858
</repository>
5959
</distributionManagement>
6060

@@ -221,10 +221,18 @@
221221
<encoding>${project.build.sourceEncoding}</encoding>
222222
</configuration>
223223
</plugin>
224+
224225
<plugin>
225-
<groupId>org.apache.maven.plugins</groupId>
226-
<artifactId>maven-release-plugin</artifactId>
226+
<groupId>org.sonatype.central</groupId>
227+
<artifactId>central-publishing-maven-plugin</artifactId>
228+
<version>0.10.0</version>
229+
<extensions>true</extensions>
230+
<configuration>
231+
<publishingServerId>central</publishingServerId>
232+
<autoPublish>true</autoPublish>
233+
</configuration>
227234
</plugin>
235+
228236
<plugin>
229237
<groupId>org.apache.maven.plugins</groupId>
230238
<artifactId>maven-shade-plugin</artifactId>

0 commit comments

Comments
 (0)