Skip to content

Commit

Permalink
Some release notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Zizka committed Dec 1, 2024
1 parent 0d5c972 commit 1e12618
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
15 changes: 15 additions & 0 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
Releasing
=========

**Edit 2024-11:**

1) Sonatype has changed the way to release. Will eventually need some changes in the process.

2) The current pom does not attach the basic .jar, so it is not signed by PHP.
A workaround is to sign it manually, upload all files to staging, and release that way.
```shell
gpg --sign '--local-user' '73BA361CA92D829800730DE207838E30786B5257' '--armor' '--detach-sign' '--output' '/home/o/uw/csv-cruncher/target/csv-cruncher-2.7.1.jar.asc' '/home/o/uw/csv-cruncher/target/csv-cruncher-2.7.1.jar'
```

*********

How to release
--------------

1) Need the PGP key, see `gpg -K`, `gpg --export-secret-keys` and `gpg --import`.

gpg: key 07838E30786B5257: public key "Ondrej Zizka (Jar signing for Maven Central) <zizka@seznam.cz>" imported
Expand Down
11 changes: 9 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,19 @@
</configuration>
</execution>
<execution>
<!-- The current setup does not sign the base jar, so the Staged release fails on OSSRH checks. -->
<!-- The current setup does not sign the base jar, so the Staged release fails on OSSRH checks. Not sure if this works, leaving as WIP. -->
<id>sign-main-jar-hack</id>
<phase>verify</phase>
<phase>initialize</phase>
<goals><goal>sign-and-deploy-file</goal></goals>
<configuration>
<file>${project.build.directory}/${project.build.finalName}.jar</file>
<url>https://${ossrh.host}/</url>
<repositoryId>ossrh</repositoryId>

<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>

<keyname>73BA361CA92D829800730DE207838E30786B5257</keyname>
<passphrase>${gpg.passphrase}</passphrase>
<executable>${gpg.executable}</executable>
Expand Down

0 comments on commit 1e12618

Please sign in to comment.