Skip to content

Commit 0bcbcac

Browse files
tilgalascopybara-github
authored andcommitted
chore: update pom.xml to prepare it for releasing
PiperOrigin-RevId: 869629830
1 parent 936471e commit 0bcbcac

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

pom.xml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -405,15 +405,6 @@
405405
</plugins>
406406
</pluginManagement>
407407
<plugins>
408-
<plugin>
409-
<groupId>org.sonatype.central</groupId>
410-
<artifactId>central-publishing-maven-plugin</artifactId>
411-
<version>0.8.0</version>
412-
<extensions>true</extensions>
413-
<configuration>
414-
<publishingServerId>central</publishingServerId>
415-
</configuration>
416-
</plugin>
417408
<plugin>
418409
<groupId>com.spotify.fmt</groupId>
419410
<artifactId>fmt-maven-plugin</artifactId>
@@ -471,6 +462,34 @@
471462
</plugins>
472463
</build>
473464
<profiles>
465+
<profile>
466+
<id>release-sonatype</id>
467+
<build>
468+
<plugins>
469+
<plugin>
470+
<groupId>org.sonatype.central</groupId>
471+
<artifactId>central-publishing-maven-plugin</artifactId>
472+
<version>0.8.0</version>
473+
<extensions>true</extensions>
474+
<configuration>
475+
<publishingServerId>central</publishingServerId>
476+
</configuration>
477+
</plugin>
478+
</plugins>
479+
</build>
480+
<distributionManagement>
481+
<repository>
482+
<id>central</id>
483+
<name>Maven Central Repository</name>
484+
<url>https://central.sonatype.com/api/v1/publisher</url>
485+
</repository>
486+
<snapshotRepository>
487+
<id>central</id>
488+
<name>Maven Central Repository Snapshots</name>
489+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
490+
</snapshotRepository>
491+
</distributionManagement>
492+
</profile>
474493
<profile>
475494
<id>release</id>
476495
<build>
@@ -480,14 +499,7 @@
480499
<artifactId>maven-gpg-plugin</artifactId>
481500
<version>3.2.7</version>
482501
<configuration>
483-
<keyname>${gpg.keyname}</keyname>
484-
<passphrase>${gpg.passphrase}</passphrase>
485-
<gpgArguments>
486-
<arg>--batch</arg>
487-
<arg>--yes</arg>
488-
<arg>--pinentry-mode</arg>
489-
<arg>loopback</arg>
490-
</gpgArguments>
502+
<signer>bc</signer>
491503
</configuration>
492504
<executions>
493505
<execution>
@@ -545,16 +557,4 @@
545557
<organizationUrl>https://www.google.com</organizationUrl>
546558
</developer>
547559
</developers>
548-
<distributionManagement>
549-
<repository>
550-
<id>central</id>
551-
<name>Maven Central Repository</name>
552-
<url>https://central.sonatype.com/api/v1/publisher</url>
553-
</repository>
554-
<snapshotRepository>
555-
<id>central</id>
556-
<name>Maven Central Repository Snapshots</name>
557-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
558-
</snapshotRepository>
559-
</distributionManagement>
560-
</project>
560+
</project>

0 commit comments

Comments
 (0)