11⚠️ Warning - This is beta and may break ⚠️
22
33User guide available on
4- [ posthog.com/docs/integrate/server/java] ( https://posthog.com/docs/integrate/server /java ) .
4+ [ posthog.com/docs/integrate/server/java] ( https://posthog.com/docs/libraries /java ) .
55
66
77## Releasing
@@ -18,6 +18,8 @@ https://central.sonatype.org/publish/publish-guide/
18182 . Create a ticket similar to https://issues.sonatype.org/browse/OSSRH-59076 &
1919 get one of the people who already have access to comment on the request with
2020 approval (you can ask in #team-platform channel).
21+ 3 . Log in to https://oss.sonatype.org/
22+ 4 . Click on your user, then "User Profile" and then get the "User Token", this is the username and password you will use in the next steps.
2123
2224#### 2. Prepare your local setup
2325
@@ -43,13 +45,30 @@ https://central.sonatype.org/publish/publish-guide/
4345 </activation>
4446 <properties>
4547 <gpg.executable>gpg</gpg.executable>
46- <gpg.passphrase>GPG_PASSPHASE</gpg.passphrase>
48+ <gpg.keyname>GPG_KEY_ID</gpg.keyname>
49+ <gpg.passphrase>GPG_PASSPHRASE</gpg.passphrase>
4750 </properties>
4851 </profile>
4952 </profiles>
5053</settings>
5154```
5255
56+ If your password has special characters, use an environment variable instead (and omit the ` <gpg.passphrase> ` xml):
57+
58+ ``` bash
59+ export GPG_PASSPHRASE=" ..."
60+ ```
61+
62+ If maven complains your private key is not available on keyserver.ubuntu.com
63+
64+ ``` bash
65+ gpg --list-secret-keys --keyid-format LONG
66+ # returns something like:
67+ # sec ed12345/123F1234FE56565 2023-09-22 [SC]
68+ # the ID will be the part after the slash, in this case `123F1234FE56565`.
69+ gpg --keyserver keyserver.ubuntu.com --send-keys 123F1234FE56565
70+ ```
71+
5372#### 3. Deploy
5473
55741 . Change the version in ` posthog/pom.xml ` accordingly (latest versions can be
0 commit comments