Skip to content

Commit 252ff71

Browse files
committed
Trying the bouncy castle provider for maven-gpg-plugin.
1 parent 3ca11ac commit 252ff71

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ jobs:
175175
- name: Build and Deploy release artifacts
176176
env:
177177
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
178+
MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
178179
run: |
179180
java -version
180181
mvn -version
181-
echo "<settings><servers><server><id>central</id><username>${{ secrets.CI_DEPLOY_USERNAME }}</username><password>${{ secrets.CI_DEPLOY_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
182-
mvn deploy -Pdeploying -Preleasing -B -e -Dgpg.passphrase="${{ secrets.MAVEN_GPG_PASSPHRASE }}"
182+
mvn deploy -Pdeploying -Preleasing -B -e
183183

pom.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@
508508
<plugin>
509509
<groupId>org.apache.maven.plugins</groupId>
510510
<artifactId>maven-gpg-plugin</artifactId>
511-
<version>3.1.0</version>
511+
<version>3.2.4</version>
512512
<executions>
513513
<execution>
514514
<id>sign-artifacts</id>
@@ -519,10 +519,7 @@
519519
</execution>
520520
</executions>
521521
<configuration>
522-
<gpgArguments>
523-
<arg>--pinentry-mode</arg>
524-
<arg>loopback</arg>
525-
</gpgArguments>
522+
<signer>bc</signer>
526523
</configuration>
527524
</plugin>
528525
<plugin>

0 commit comments

Comments
 (0)