Skip to content

Commit

Permalink
chore: release java 1.2.0 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Jan 29, 2025
1 parent 1e3a971 commit c39162b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
⚠️ Warning - This is beta and may break ⚠️

User guide available on
[posthog.com/docs/integrate/server/java](https://posthog.com/docs/integrate/server/java).
[posthog.com/docs/integrate/server/java](https://posthog.com/docs/libraries/java).


## Releasing
Expand All @@ -18,6 +18,8 @@ https://central.sonatype.org/publish/publish-guide/
2. Create a ticket similar to https://issues.sonatype.org/browse/OSSRH-59076 &
get one of the people who already have access to comment on the request with
approval (you can ask in #team-platform channel).
3. Log in to https://oss.sonatype.org/
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.

#### 2. Prepare your local setup

Expand All @@ -43,13 +45,30 @@ https://central.sonatype.org/publish/publish-guide/
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>GPG_PASSPHASE</gpg.passphrase>
<gpg.keyname>GPG_KEY_ID</gpg.keyname>
<gpg.passphrase>GPG_PASSPHRASE</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
```

If your password has special characters, use an environment variable instead (and omit the `<gpg.passphrase>` xml):

```bash
export GPG_PASSPHRASE="..."
```

If maven complains your private key is not available on keyserver.ubuntu.com

```bash
gpg --list-secret-keys --keyid-format LONG
# returns something like:
# sec ed12345/123F1234FE56565 2023-09-22 [SC]
# the ID will be the part after the slash, in this case `123F1234FE56565`.
gpg --keyserver keyserver.ubuntu.com --send-keys 123F1234FE56565
```

#### 3. Deploy

1. Change the version in `posthog/pom.xml` accordingly (latest versions can be
Expand Down
1 change: 1 addition & 0 deletions posthog/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependency-reduced-pom.xml
2 changes: 1 addition & 1 deletion posthog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.posthog.java</groupId>
<artifactId>posthog</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.2.0-SNAPSHOT</version>

<name>PostHog Java</name>
<description>The official way to add PostHog to your Java app.</description>
Expand Down

0 comments on commit c39162b

Please sign in to comment.