Skip to content

Commit 51db083

Browse files
authored
Merge pull request #21 from marhali/next
Next
2 parents 6752532 + f45a10b commit 51db083

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
java-version: '11'
1919
distribution: 'adopt'
2020
cache: maven
21-
server-id: ossrh
21+
server-id: central
2222
server-username: MAVEN_USERNAME
2323
server-password: MAVEN_PASSWORD
2424
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
@@ -27,6 +27,6 @@ jobs:
2727
- name: Deploy with Maven
2828
run: mvn -B clean deploy -Pci-cd
2929
env:
30-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
31-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
30+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
31+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
3232
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@
115115
</execution>
116116
</executions>
117117
</plugin>
118+
<plugin>
119+
<groupId>org.sonatype.central</groupId>
120+
<artifactId>central-publishing-maven-plugin</artifactId>
121+
<version>0.8.0</version>
122+
<extensions>true</extensions>
123+
<configuration>
124+
<publishingServerId>central</publishingServerId>
125+
</configuration>
126+
</plugin>
118127
</plugins>
119128
</build>
120129

@@ -134,6 +143,14 @@
134143
<goals>
135144
<goal>sign</goal>
136145
</goals>
146+
<configuration>
147+
<!-- Prevent gpg from using pin entry programs.
148+
Fixes: gpg: signing failed: Inappropriate ioctl for device -->
149+
<gpgArguments>
150+
<arg>--pinentry-mode</arg>
151+
<arg>loopback</arg>
152+
</gpgArguments>
153+
</configuration>
137154
</execution>
138155
</executions>
139156
</plugin>

0 commit comments

Comments
 (0)