Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release java 1.2.0 #63

Merged
merged 6 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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