Skip to content

Commit 1342dc6

Browse files
authored
Merge pull request #17 from Comcast/feature/upgrades
Upgraded the Platform and repository sonatype
2 parents 210ffa8 + 229e87f commit 1342dc6

File tree

2 files changed

+42
-20
lines changed

2 files changed

+42
-20
lines changed

.github/workflows/maven-publish.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,34 @@ name: Publish Release
22
on:
33
release:
44
types: [created, edited]
5+
56
jobs:
67
publish:
78
runs-on: ubuntu-latest
89
timeout-minutes: 30
10+
911
steps:
10-
- uses: actions/checkout@v2
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
1115
- name: Set up Java for publishing to Maven Central Repository
12-
uses: actions/setup-java@v1
16+
uses: actions/setup-java@v5
1317
with:
14-
java-version: 1.8
15-
server-id: ossrh
18+
java-version: '25'
19+
distribution: 'corretto'
20+
server-id: central
1621
server-username: MAVEN_USERNAME
1722
server-password: MAVEN_PASSWORD
23+
cache: 'maven'
24+
1825
- name: Configure GPG Key
1926
run: |
2027
mkdir -p ~/.gnupg/
2128
printf "$GPG_SIGNING_KEY" | base64 --decode > ~/.gnupg/private.key
2229
gpg --import ~/.gnupg/private.key
2330
env:
2431
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
32+
2533
- name: Publish to the Maven Central Repository
2634
run: mvn --batch-mode deploy
2735
timeout-minutes: 30

pom.xml

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
<name>Eugene Strokin</name>
3232
<id>strokine</id>
3333
</developer>
34+
<developer>
35+
<email>hemantobora@gmail.com</email>
36+
<name>Hemanto Bora</name>
37+
</developer>
38+
<developer>
39+
<email>jhulfikarali@gmail.com</email>
40+
<name>Jhulfikar Kabeer</name>
41+
</developer>
3442
</developers>
3543

3644
<modules>
@@ -49,26 +57,29 @@
4957
<plugin>
5058
<groupId>org.apache.maven.plugins</groupId>
5159
<artifactId>maven-surefire-plugin</artifactId>
52-
<version>2.22.1</version>
60+
<version>3.2.5</version>
5361
<configuration>
54-
<forkMode>always</forkMode>
62+
<forkCount>1</forkCount>
63+
<reuseForks>false</reuseForks>
5564
</configuration>
5665
</plugin>
66+
5767
<plugin>
58-
<groupId>org.sonatype.plugins</groupId>
59-
<artifactId>nexus-staging-maven-plugin</artifactId>
60-
<version>1.6.7</version>
68+
<groupId>org.sonatype.central</groupId>
69+
<artifactId>central-publishing-maven-plugin</artifactId>
70+
<version>0.9.0</version>
6171
<extensions>true</extensions>
6272
<configuration>
63-
<serverId>ossrh</serverId>
64-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
65-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
73+
<publishingServerId>central</publishingServerId>
74+
<autoPublish>true</autoPublish>
75+
<waitUntil>published</waitUntil>
6676
</configuration>
6777
</plugin>
78+
6879
<plugin>
6980
<groupId>org.apache.maven.plugins</groupId>
7081
<artifactId>maven-source-plugin</artifactId>
71-
<version>3.2.1</version>
82+
<version>3.3.1</version>
7283
<executions>
7384
<execution>
7485
<id>attach-sources</id>
@@ -78,10 +89,14 @@
7889
</execution>
7990
</executions>
8091
</plugin>
92+
8193
<plugin>
8294
<groupId>org.apache.maven.plugins</groupId>
8395
<artifactId>maven-javadoc-plugin</artifactId>
84-
<version>3.2.0</version>
96+
<version>3.6.3</version>
97+
<configuration>
98+
<release>25</release>
99+
</configuration>
85100
<executions>
86101
<execution>
87102
<id>attach-javadocs</id>
@@ -91,10 +106,11 @@
91106
</execution>
92107
</executions>
93108
</plugin>
109+
94110
<plugin>
95111
<groupId>org.apache.maven.plugins</groupId>
96112
<artifactId>maven-gpg-plugin</artifactId>
97-
<version>1.6</version>
113+
<version>3.1.0</version>
98114
<executions>
99115
<execution>
100116
<id>sign-artifacts</id>
@@ -110,13 +126,11 @@
110126

111127
<distributionManagement>
112128
<snapshotRepository>
113-
<id>ossrh</id>
114-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
129+
<id>central</id>
115130
</snapshotRepository>
116131
<repository>
117-
<id>ossrh</id>
118-
<name>Central Repository OSSRH</name>
119-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
132+
<id>central</id>
133+
<name>Central Repository</name>
120134
</repository>
121135
</distributionManagement>
122136
</project>

0 commit comments

Comments
 (0)