Skip to content

Commit 26a4242

Browse files
committed
Migrate publishing from OSSRH to Central Publisher API
1 parent 24f78ef commit 26a4242

File tree

2 files changed

+35
-56
lines changed

2 files changed

+35
-56
lines changed

.travis.yml

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

pom.xml

Lines changed: 35 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
</developer>
4040
</developers>
4141

42-
<distributionManagement>
43-
<snapshotRepository>
44-
<id>ossrh</id>
45-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
46-
</snapshotRepository>
47-
</distributionManagement>
48-
4942
<repositories>
5043
<repository>
51-
<id>ossrh</id>
52-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
44+
<id>central-snapshots</id>
45+
<name>Sonatype Central Portal (snapshots)</name>
46+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
47+
<releases>
48+
<enabled>false</enabled>
49+
</releases>
50+
<snapshots>
51+
<enabled>true</enabled>
52+
</snapshots>
5353
</repository>
5454
</repositories>
5555

@@ -139,31 +139,6 @@
139139
</execution>
140140
</executions>
141141
</plugin>
142-
<plugin>
143-
<groupId>org.apache.maven.plugins</groupId>
144-
<artifactId>maven-release-plugin</artifactId>
145-
<version>3.0.1</version>
146-
<configuration>
147-
<autoVersionSubmodules>true</autoVersionSubmodules>
148-
<useReleaseProfile>false</useReleaseProfile>
149-
<releaseProfiles>release</releaseProfiles>
150-
<goals>deploy</goals>
151-
<tagNameFormat>v@{project.version}</tagNameFormat>
152-
<pushChanges>false</pushChanges>
153-
<localCheckout>true</localCheckout>
154-
</configuration>
155-
</plugin>
156-
<plugin>
157-
<groupId>org.sonatype.plugins</groupId>
158-
<artifactId>nexus-staging-maven-plugin</artifactId>
159-
<version>1.6.13</version>
160-
<extensions>true</extensions>
161-
<configuration>
162-
<serverId>ossrh</serverId>
163-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
164-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
165-
</configuration>
166-
</plugin>
167142
</plugins>
168143
</build>
169144

@@ -177,12 +152,12 @@
177152
<dependency>
178153
<groupId>fr.acinq.bitcoin</groupId>
179154
<artifactId>bitcoin-kmp-jvm</artifactId>
180-
<version>0.24.0</version>
155+
<version>0.25.0</version>
181156
</dependency>
182157
<dependency>
183158
<groupId>fr.acinq.secp256k1</groupId>
184159
<artifactId>secp256k1-kmp-jni-jvm</artifactId>
185-
<version>0.17.3</version>
160+
<version>0.18.0</version>
186161
</dependency>
187162
<dependency>
188163
<groupId>org.scodec</groupId>
@@ -229,14 +204,32 @@
229204
<profiles>
230205
<profile>
231206
<id>release</id>
232-
<activation>
233-
<property>
234-
<name>performRelease</name>
235-
<value>true</value>
236-
</property>
237-
</activation>
238207
<build>
239208
<plugins>
209+
<plugin>
210+
<groupId>org.sonatype.central</groupId>
211+
<artifactId>central-publishing-maven-plugin</artifactId>
212+
<version>0.8.0</version>
213+
<extensions>true</extensions>
214+
<configuration>
215+
<publishingServerId>central</publishingServerId>
216+
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots</centralSnapshotsUrl>
217+
</configuration>
218+
</plugin>
219+
<plugin>
220+
<groupId>org.apache.maven.plugins</groupId>
221+
<artifactId>maven-gpg-plugin</artifactId>
222+
<version>1.6</version>
223+
<executions>
224+
<execution>
225+
<id>sign-artifacts</id>
226+
<phase>verify</phase>
227+
<goals>
228+
<goal>sign</goal>
229+
</goals>
230+
</execution>
231+
</executions>
232+
</plugin>
240233
<plugin>
241234
<groupId>org.apache.maven.plugins</groupId>
242235
<artifactId>maven-gpg-plugin</artifactId>

0 commit comments

Comments
 (0)