1
1
⚠️ Warning - This is beta and may break ⚠️
2
2
3
3
User 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 ) .
5
5
6
6
7
7
## Releasing
@@ -18,6 +18,8 @@ https://central.sonatype.org/publish/publish-guide/
18
18
2 . Create a ticket similar to https://issues.sonatype.org/browse/OSSRH-59076 &
19
19
get one of the people who already have access to comment on the request with
20
20
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.
21
23
22
24
#### 2. Prepare your local setup
23
25
@@ -43,13 +45,30 @@ https://central.sonatype.org/publish/publish-guide/
43
45
</activation>
44
46
<properties>
45
47
<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>
47
50
</properties>
48
51
</profile>
49
52
</profiles>
50
53
</settings>
51
54
```
52
55
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
+
53
72
#### 3. Deploy
54
73
55
74
1 . Change the version in ` posthog/pom.xml ` accordingly (latest versions can be
0 commit comments