Skip to content

Commit

Permalink
Tune maven-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
p3t committed Nov 12, 2024
1 parent 7c016e6 commit b1055dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: ./mvnw versions:set -DnewVersion=${{ inputs.build_version }} -DgenerateBackupPoms=false

- name: Publish to Maven Central
run: ./mvnw -T1C --batch-mode verify gpg:sign deploy -Dgpg.signer=bc -Dcentral -DskipTests
run: ./mvnw -T1C --batch-mode deploy -Dgpg.signer=bc -Dcentral -DskipTests
env:
SERVER_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
SERVER_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
Expand Down
11 changes: 8 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
<goals>
<goal>jar-no-fork</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
Expand All @@ -279,9 +280,9 @@
<goals>
<goal>sign</goal>
</goals>
<configuration>
<signer>bc</signer>
</configuration>
<!-- <configuration>-->
<!-- <signer>bc</signer>-->
<!-- </configuration>-->
</execution>
</executions>
</plugin>
Expand Down Expand Up @@ -340,6 +341,10 @@
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
Expand Down

0 comments on commit b1055dd

Please sign in to comment.