Skip to content

Commit fde130d

Browse files
chore: migrate from OSSRH to Sonatype Central Publisher Portal
- Remove distributionManagement pointing to s01.oss.sonatype.org - Fix SCM URLs to HTTPS (was git:// and ssh://) - Add distribution=repo to MIT license entry - Replace release profile: remove nexus-staging-maven-plugin, add central-publishing-maven-plugin 0.9.0, upgrade maven-gpg-plugin to 3.2.7 with keyname + --pinentry-mode loopback, add source 3.3.1 and javadoc 3.11.2 plugins; retain cuda classifier jar execution
1 parent 7413420 commit fde130d

1 file changed

Lines changed: 47 additions & 28 deletions

File tree

pom.xml

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,23 @@
1717
<license>
1818
<name>MIT License</name>
1919
<url>https://www.opensource.org/licenses/mit-license.php</url>
20+
<distribution>repo</distribution>
2021
</license>
2122
</licenses>
2223

2324
<developers>
2425
<developer>
2526
<name>Bernard Ladenthin</name>
26-
2727
<organizationUrl>https://github.com/bernardladenthin</organizationUrl>
2828
</developer>
2929
</developers>
3030

3131
<scm>
32-
<connection>scm:git:git://github.com/kherud/java-llama.cpp.git</connection>
33-
<developerConnection>scm:git:ssh://github.com:bernardladenthin/java-llama.cpp.git</developerConnection>
32+
<connection>scm:git:https://github.com/bernardladenthin/java-llama.cpp.git</connection>
33+
<developerConnection>scm:git:https://github.com/bernardladenthin/java-llama.cpp.git</developerConnection>
3434
<url>https://github.com/bernardladenthin/java-llama.cpp/tree/master</url>
3535
</scm>
3636

37-
<distributionManagement>
38-
<snapshotRepository>
39-
<id>ossrh</id>
40-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
41-
</snapshotRepository>
42-
<repository>
43-
<id>ossrh</id>
44-
<url>
45-
https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
46-
</repository>
47-
</distributionManagement>
48-
4937
<properties>
5038
<jna.version>5.18.1</jna.version>
5139
<junit.version>4.13.2</junit.version>
@@ -167,30 +155,61 @@
167155
<build>
168156
<plugins>
169157
<plugin>
170-
<groupId>org.sonatype.plugins</groupId>
171-
<artifactId>nexus-staging-maven-plugin</artifactId>
172-
<version>1.6.13</version>
173-
<extensions>true</extensions>
174-
<configuration>
175-
<serverId>ossrh</serverId>
176-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
177-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
178-
</configuration>
158+
<groupId>org.apache.maven.plugins</groupId>
159+
<artifactId>maven-source-plugin</artifactId>
160+
<version>3.3.1</version>
161+
<executions>
162+
<execution>
163+
<id>attach-sources</id>
164+
<goals><goal>jar-no-fork</goal></goals>
165+
</execution>
166+
</executions>
179167
</plugin>
168+
169+
<plugin>
170+
<groupId>org.apache.maven.plugins</groupId>
171+
<artifactId>maven-javadoc-plugin</artifactId>
172+
<version>3.11.2</version>
173+
<executions>
174+
<execution>
175+
<id>attach-javadocs</id>
176+
<goals><goal>jar</goal></goals>
177+
</execution>
178+
</executions>
179+
</plugin>
180+
180181
<plugin>
181182
<groupId>org.apache.maven.plugins</groupId>
182183
<artifactId>maven-gpg-plugin</artifactId>
183-
<version>3.1.0</version>
184+
<version>3.2.7</version>
184185
<executions>
185186
<execution>
186187
<id>sign-artifacts</id>
187188
<phase>verify</phase>
188-
<goals>
189-
<goal>sign</goal>
190-
</goals>
189+
<goals><goal>sign</goal></goals>
190+
<configuration>
191+
<keyname>${gpg.keyname}</keyname>
192+
<gpgArguments>
193+
<arg>--pinentry-mode</arg>
194+
<arg>loopback</arg>
195+
</gpgArguments>
196+
</configuration>
191197
</execution>
192198
</executions>
193199
</plugin>
200+
201+
<plugin>
202+
<groupId>org.sonatype.central</groupId>
203+
<artifactId>central-publishing-maven-plugin</artifactId>
204+
<version>0.9.0</version>
205+
<extensions>true</extensions>
206+
<configuration>
207+
<publishingServerId>central</publishingServerId>
208+
<autoPublish>true</autoPublish>
209+
<waitUntil>published</waitUntil>
210+
</configuration>
211+
</plugin>
212+
194213
<plugin>
195214
<groupId>org.apache.maven.plugins</groupId>
196215
<artifactId>maven-jar-plugin</artifactId>

0 commit comments

Comments
 (0)