Skip to content

Commit 867fe0d

Browse files
Merge pull request #4 from OpenJavaLibs/github
Publish to maven central repository
2 parents 93aa516 + e4a36cf commit 867fe0d

2 files changed

Lines changed: 55 additions & 54 deletions

File tree

.github/workflows/maven.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

pom.xml

Lines changed: 55 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,45 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
5+
66
<modelVersion>4.0.0</modelVersion>
7-
<groupId>OpenJavaLibs</groupId>
7+
<groupId>io.github.openjavalibs</groupId>
88
<artifactId>pojo-tester</artifactId>
99
<version>21.0.0</version>
10+
<packaging>jar</packaging>
1011
<name>pojo-tester</name>
1112
<description>Pojo Tester</description>
1213
<url>https://github.com/OpenJavaLibs/pojo-tester</url>
14+
1315
<licenses>
1416
<license>
15-
<name>GNU General Public License v3.0</name>
16-
<url>https://www.gnu.org/licenses/gpl-3.0.html</url>
17+
<name>Apache License, Version 2.0</name>
18+
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
1719
<distribution>repo</distribution>
1820
</license>
1921
</licenses>
2022

23+
2124
<developers>
2225
<developer>
23-
<id>srikanthkapila</id> <!-- Unique identifier for the developer -->
24-
<name>Srikanth Kapila</name> <!-- Full name -->
25-
<email>srikanthkapila@gmail.com</email> <!-- Contact email -->
26-
<organization>OpenJavaLibs</organization> <!-- Organization -->
27-
<organizationUrl>https://github.com/OpenJavaLibs</organizationUrl> <!--
28-
Organization website -->
26+
<id>srikanthkapila</id>
27+
<name>Srikanth Kapila</name>
28+
<email>srikanthkapila@gmail.com</email>
29+
<organization>OpenJavaLibs</organization>
30+
<organizationUrl>https://github.com/OpenJavaLibs</organizationUrl>
2931
</developer>
3032
</developers>
33+
34+
<scm>
35+
<connection>scm:git:git://github.com/OpenJavaLibs/pojo-tester.git</connection>
36+
<developerConnection>scm:git:ssh://github.com/OpenJavaLibs/pojo-tester.git</developerConnection>
37+
<url>https://github.com/OpenJavaLibs/pojo-tester</url>
38+
</scm>
39+
3140
<properties>
3241
<java.version>21</java.version>
42+
<maven.compiler.source>21</maven.compiler.source>
43+
<maven.compiler.target>21</maven.compiler.target>
3344
</properties>
3445
<dependencies>
3546
<dependency>
@@ -139,26 +150,23 @@
139150
<version>2.0.9</version>
140151
<scope>test</scope>
141152
</dependency>
142-
143153
</dependencies>
144154

145155
<build>
146156
<plugins>
147-
<!-- Attach Source Code -->
148157
<plugin>
149158
<groupId>org.apache.maven.plugins</groupId>
150159
<artifactId>maven-source-plugin</artifactId>
151160
<version>3.3.0</version>
152161
<executions>
153162
<execution>
163+
<id>attach-sources</id>
154164
<goals>
155-
<goal>jar</goal>
165+
<goal>jar-no-fork</goal>
156166
</goals>
157167
</execution>
158168
</executions>
159169
</plugin>
160-
161-
<!-- Attach Javadoc -->
162170
<plugin>
163171
<groupId>org.apache.maven.plugins</groupId>
164172
<artifactId>maven-javadoc-plugin</artifactId>
@@ -174,21 +182,50 @@
174182
</configuration>
175183
<executions>
176184
<execution>
185+
<id>attach-javadocs</id>
177186
<goals>
178187
<goal>jar</goal>
179188
</goals>
180189
</execution>
181190
</executions>
182191
</plugin>
192+
<plugin>
193+
<groupId>org.apache.maven.plugins</groupId>
194+
<artifactId>maven-gpg-plugin</artifactId>
195+
<version>3.1.0</version>
196+
<executions>
197+
<execution>
198+
<id>sign-artifacts</id>
199+
<phase>verify</phase>
200+
<goals>
201+
<goal>sign</goal>
202+
</goals>
203+
</execution>
204+
</executions>
205+
</plugin>
206+
207+
<plugin>
208+
<groupId>org.sonatype.central</groupId>
209+
<artifactId>central-publishing-maven-plugin</artifactId>
210+
<version>0.6.0</version>
211+
<extensions>true</extensions>
212+
<configuration>
213+
<publishingServerId>central</publishingServerId>
214+
</configuration>
215+
</plugin>
216+
183217
</plugins>
184218
</build>
185219

186220

187221
<distributionManagement>
222+
<snapshotRepository>
223+
<id>ossrh</id>
224+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
225+
</snapshotRepository>
188226
<repository>
189-
<id>openjavalibs-github</id>
190-
<name>OpenJavaLibs Maven Packages</name>
191-
<url>https://maven.pkg.github.com/OpenJavaLibs/pojo-tester</url>
227+
<id>ossrh</id>
228+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
192229
</repository>
193230
</distributionManagement>
194231

0 commit comments

Comments
 (0)