Skip to content

Commit 43bc7ae

Browse files
committed
Prepare for Central Portal publishing
1 parent 5534134 commit 43bc7ae

File tree

2 files changed

+26
-43
lines changed

2 files changed

+26
-43
lines changed

base/pom.xml

Lines changed: 17 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,15 @@ of Jackson: application code should only rely on `jackson-bom`
282282
</archive>
283283
</configuration>
284284
</plugin>
285-
285+
<!-- 13-May-2025: config defaults for Sonatype Central Portal publishing -->
286+
<plugin>
287+
<groupId>org.sonatype.central</groupId>
288+
<artifactId>central-publishing-maven-plugin</artifactId>
289+
<extensions>true</extensions>
290+
<configuration>
291+
<publishingServerId>central</publishingServerId>
292+
</configuration>
293+
</plugin>
286294
</plugins>
287295
</pluginManagement>
288296

@@ -300,6 +308,14 @@ of Jackson: application code should only rely on `jackson-bom`
300308
</executions>
301309
</plugin>
302310

311+
<!-- 13-May-2025: Enable Sonatype Central Portal publishing -->
312+
<!-- not yet
313+
<plugin>
314+
<groupId>org.sonatype.central</groupId>
315+
<artifactId>central-publishing-maven-plugin</artifactId>
316+
</plugin>
317+
-->
318+
303319
<!-- 12-Oct-2019, tatu: Copied from
304320
https://github.com/stephenc/git-timestamp-maven-plugin/blob/master/pom.xml#L327-L337
305321
-->
@@ -317,45 +333,4 @@ of Jackson: application code should only rely on `jackson-bom`
317333
</plugin>
318334
</plugins>
319335
</build>
320-
321-
<!-- 08-Mar-2019, tatu: Add option to generate `module-info.java` with Moditect
322-
under profile `moditect`
323-
-->
324-
<profiles>
325-
<profile>
326-
<id>moditect</id>
327-
<properties>
328-
<!-- Not only do we need JDK 9+, must target later JDK too -->
329-
<java.version>1.9</java.version>
330-
</properties>
331-
<build>
332-
<plugins>
333-
<plugin>
334-
<groupId>org.moditect</groupId>
335-
<artifactId>moditect-maven-plugin</artifactId>
336-
<executions>
337-
<execution>
338-
<id>generate-module-info</id>
339-
<phase>generate-sources</phase>
340-
<goals>
341-
<goal>generate-module-info</goal>
342-
</goals>
343-
<configuration>
344-
<modules>
345-
<module>
346-
<artifact>
347-
<groupId>${moditect.sourceGroup}</groupId>
348-
<artifactId>${moditect.sourceArtifact}</artifactId>
349-
<version>${moditect.sourceVersion}</version>
350-
</artifact>
351-
</module>
352-
</modules>
353-
</configuration>
354-
</execution>
355-
</executions>
356-
</plugin>
357-
</plugins>
358-
</build>
359-
</profile>
360-
</profiles>
361336
</project>

pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.fasterxml.jackson</groupId>
77
<artifactId>jackson-parent</artifactId>
88
<!-- note: does NOT change for every version of bom -->
9-
<version>2.18.1</version>
9+
<version>2.18.2</version>
1010
</parent>
1111

1212
<artifactId>jackson-bom</artifactId>
@@ -452,5 +452,13 @@ of Jackson components maintained by FasterXML.com
452452
<releases><enabled>false</enabled></releases>
453453
<snapshots><enabled>true</enabled></snapshots>
454454
</repository>
455+
<!-- 13-May-2025, tatu: soon moving to Central Portal -->
456+
<repository>
457+
<id>central-snapshots</id>
458+
<name>Sonatype Central Portal (snapshots)</name>
459+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
460+
<releases><enabled>false</enabled></releases>
461+
<snapshots><enabled>true</enabled></snapshots>
462+
</repository>
455463
</repositories>
456464
</project>

0 commit comments

Comments
 (0)