ICU-22561 Added maven-gpg-plugin in pom.xml to sign artifacts for maven central release.

This commit is contained in:
yumaoka 2023-10-30 17:24:13 -04:00 committed by Mihai Nita
parent b070c932ad
commit a7c7d8f214

View file

@ -481,6 +481,34 @@
</build>
</profile>
<profile>
<id>with_signature</id>
<build>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>${gpg-keyname}</keyname>
<passphraseServerId>${gpg-keyname}</passphraseServerId>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- This is used to create "merged" javadoc for all modules combined.
Matches what is posted on a website (where icu4j / charset / localespi are all in one).
That's why you need to run this with `site`, but build the artifacts first (for the taglets):