Skip to content

Commit 1671e9a

Browse files
tomballcopybara-github
authored andcommitted
Update j2objc-annotations to use Sonatype Central Publishing.
This change upgrades the Maven compiler source/target to Java 11, updates the project version, and replaces the manual Sonatype Nexus staging/release process with the `central-publishing-maven-plugin` for automated publishing to Maven Central. The opensource documentation has been updated to reflect the new publishing workflow. PiperOrigin-RevId: 795130224
1 parent 70f0121 commit 1671e9a

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

annotations/pom.xml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
<modelVersion>4.0.0</modelVersion>
2020

2121
<properties>
22-
<maven.compiler.source>1.7</maven.compiler.source>
23-
<maven.compiler.target>1.7</maven.compiler.target>
22+
<maven.compiler.source>11</maven.compiler.source>
23+
<maven.compiler.target>11</maven.compiler.target>
2424
</properties>
2525

2626
<groupId>com.google.j2objc</groupId>
2727
<artifactId>j2objc-annotations</artifactId>
2828
<packaging>jar</packaging>
29-
<version>3.0.0-SNAPSHOT</version>
29+
<version>3.1-SNAPSHOT</version>
3030

3131
<name>J2ObjC Annotations</name>
3232
<description>
@@ -59,19 +59,6 @@
5959
</developer>
6060
</developers>
6161

62-
<distributionManagement>
63-
<snapshotRepository>
64-
<id>sonatype-nexus-snapshots</id>
65-
<name>Sonatype Nexus Snapshots</name>
66-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
67-
</snapshotRepository>
68-
<repository>
69-
<id>sonatype-nexus-staging</id>
70-
<name>Nexus Release Repository</name>
71-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
72-
</repository>
73-
</distributionManagement>
74-
7562
<build>
7663
<plugins>
7764
<plugin>
@@ -153,6 +140,16 @@
153140
</execution>
154141
</executions>
155142
</plugin>
143+
<plugin>
144+
<groupId>org.sonatype.central</groupId>
145+
<artifactId>central-publishing-maven-plugin</artifactId>
146+
<version>0.8.0</version>
147+
<extensions>true</extensions>
148+
<configuration>
149+
<publishingServerId>central</publishingServerId>
150+
<autoPublish>true</autoPublish>
151+
</configuration>
152+
</plugin>
156153
</plugins>
157154
</build>
158155
</project>

0 commit comments

Comments
 (0)