Skip to content

Commit c39162b

Browse files
authored
chore: release java 1.2.0 (#63)
1 parent 1e3a971 commit c39162b

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

README.md

+21-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
⚠️ Warning - This is beta and may break ⚠️
22

33
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).
55

66

77
## Releasing
@@ -18,6 +18,8 @@ https://central.sonatype.org/publish/publish-guide/
1818
2. 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

5574
1. Change the version in `posthog/pom.xml` accordingly (latest versions can be

posthog/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dependency-reduced-pom.xml

posthog/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.posthog.java</groupId>
88
<artifactId>posthog</artifactId>
9-
<version>1.1.0-SNAPSHOT</version>
9+
<version>1.2.0-SNAPSHOT</version>
1010

1111
<name>PostHog Java</name>
1212
<description>The official way to add PostHog to your Java app.</description>

0 commit comments

Comments
 (0)