Skip to content

Commit 02dac8d

Browse files
committed
maven-gpg-plugin for 1.10.2
1 parent 91710b9 commit 02dac8d

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/maven_deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ jobs:
2828
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
2929
server-username: MAVEN_USERNAME
3030
server-password: MAVEN_PASSWORD
31-
# TODO:
32-
# gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # has to be read directly from secrets
33-
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # default name used by maven-gpg-plugin
31+
gpg-private-key: ${{ secrets.SIGN_KEY }} # has to be read directly from secrets
32+
gpg-passphrase: SIGN_KEY_PASS # default name used by maven-gpg-plugin
3433
- name: Publish package
3534
# run: mvn --batch-mode deploy
3635
run: mvn -V --errors --show-version --batch-mode --no-transfer-progress -Ddoclint=all deploy
3736
env:
3837
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3938
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
40-
# MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
39+
MAVEN_GPG_PASSPHRASE: ${{ secrets.SIGN_KEY_PASS }}

pom.xml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
-->
2929
<groupId>io.github.homebeaver</groupId>
3030
<artifactId>isoiec7064</artifactId>
31-
<version>1.10.1</version>
31+
<version>1.10.2</version>
3232
<packaging>jar</packaging>
3333

3434
<name>IsoIec7064</name>
@@ -132,26 +132,22 @@
132132
</executions>
133133
</plugin>
134134

135-
<!-- see https://maven.apache.org/plugins/maven-gpg-plugin/usage.html
135+
<!-- see https://maven.apache.org/plugins/maven-gpg-plugin/usage.html -->
136136
<plugin>
137137
<groupId>org.apache.maven.plugins</groupId>
138138
<artifactId>maven-gpg-plugin</artifactId>
139139
<version>3.2.7</version>
140140
<executions>
141141
<execution>
142-
<id>sign-artifacts</id>
143142
<phase>verify</phase>
144143
<goals>
145144
<goal>sign</goal>
146145
</goals>
147-
<configuration>
148-
<keyname>sign-key-id</keyname>
149-
<passphraseServerId>sign-key-id</passphraseServerId>
150-
</configuration>
151146
</execution>
152147
</executions>
153148
</plugin>
154-
use simplify4u : -->
149+
<!-- or use simplify4u : https://www.simplify4u.org/sign-maven-plugin/
150+
Key configuration can be provided by environment variables: SIGN_KEY, SIGN_KEY_ID, SIGN_KEY_PASS
155151
<plugin>
156152
<groupId>org.simplify4u.plugins</groupId>
157153
<artifactId>sign-maven-plugin</artifactId>
@@ -161,13 +157,10 @@ use simplify4u : -->
161157
<goals>
162158
<goal>sign</goal>
163159
</goals>
164-
<configuration>
165-
<!-- the same id as in settings.xml -->
166-
<serverId>sign-key-id</serverId>
167-
</configuration>
168160
</execution>
169161
</executions>
170162
</plugin>
163+
-->
171164

172165
<plugin>
173166
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)