MVN

com.posthog.java : posthog

Maven & Gradle

Mar 15, 2023
8 stars

PostHog Java · The official way to add PostHog to your Java app.

<dependency>
    <groupId>com.posthog.java</groupId>
    <artifactId>posthog</artifactId>
    <version>1.1.0</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.posthog.java : posthog to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 1.1.0

All Versions

Choose a version of com.posthog.java : posthog to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
1.1.x
posthog-1.1.0
1.0.x
posthog-1.0.3
posthog-1.0.2
posthog-1.0.1
posthog-1.0.0

How to add a dependency to Maven

Add the following com.posthog.java : posthog maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.posthog.java</groupId>
    <artifactId>posthog</artifactId>
    <version>1.1.0</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.posthog.java : posthog gradle dependency to your build.gradle file:

implementation 'com.posthog.java:posthog:1.1.0'

Gradle Kotlin DSL: Add the following com.posthog.java : posthog gradle kotlin dependency to your build.gradle.kts file:

implementation("com.posthog.java:posthog:1.1.0")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.posthog.java : posthog sbt scala dependency to your build.sbt file:

libraryDependencies += "com.posthog.java" % "posthog" % "1.1.0"