From 57bcee4d7ed8db90bf61bc1188867f30937ac9b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 31 Oct 2025 23:52:39 +0000 Subject: [PATCH 1/4] Initial plan From 73f6cc69c8506f4e222ed54868df73191a64cc15 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 31 Oct 2025 23:56:32 +0000 Subject: [PATCH 2/4] Add snapshot version setup documentation for Java Feature Flags SDK Co-authored-by: msiebert <1504059+msiebert@users.noreply.github.com> --- .../tracking-methods/sdks/java/java-flags.mdx | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/pages/docs/tracking-methods/sdks/java/java-flags.mdx b/pages/docs/tracking-methods/sdks/java/java-flags.mdx index 024703589b..7ad71b8c0e 100644 --- a/pages/docs/tracking-methods/sdks/java/java-flags.mdx +++ b/pages/docs/tracking-methods/sdks/java/java-flags.mdx @@ -17,6 +17,60 @@ Before implementing [Feature Flags](/docs/featureflags), ensure: - You are on an Enterprise subscription plan and have the appropriate version of the SDK installed (minimum supported version is `1.6.0-SNAPSHOT`). If not, please follow [this doc](/docs/quickstart/install-mixpanel) to install the SDK. - You have your Project Token from your [Mixpanel Project Settings](/docs/orgs-and-projects/managing-projects#find-your-project-tokens) +## Installing the SDK + + + The Java Feature Flags SDK is currently in Beta and uses a `-SNAPSHOT` version. You'll need to configure your build tool to pull snapshot versions from Sonatype's snapshot repository. + + +### Maven + +Add the Sonatype snapshot repository to your `pom.xml`: + +```xml + + + sonatype-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + true + + + +``` + +Then add the Mixpanel Java SDK dependency: + +```xml + + com.mixpanel + mixpanel-java + 1.6.0-SNAPSHOT + +``` + +### Gradle + +Add the Sonatype snapshot repository to your `build.gradle`: + +```groovy +repositories { + maven { + url "https://oss.sonatype.org/content/repositories/snapshots" + } +} +``` + +Then add the Mixpanel Java SDK dependency: + +```groovy +dependencies { + implementation 'com.mixpanel:mixpanel-java:1.6.0-SNAPSHOT' +} +``` + +For more information about working with snapshot versions, see the [Sonatype snapshot documentation](https://central.sonatype.org/publish/publish-portal-snapshots/#publishing-via-other-methods). + ## Flag Evaluation Modes There are two modes available for using the Java SDK for feature flagging: Local Evaluation and Remote Evaluation. From 8db055c699aef4d5d702952df8619edd935b5e92 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 3 Nov 2025 16:52:56 +0000 Subject: [PATCH 3/4] Simplify snapshot version setup by linking to Sonatype docs instead of inlining Co-authored-by: msiebert <1504059+msiebert@users.noreply.github.com> --- .../tracking-methods/sdks/java/java-flags.mdx | 50 +------------------ 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/pages/docs/tracking-methods/sdks/java/java-flags.mdx b/pages/docs/tracking-methods/sdks/java/java-flags.mdx index 7ad71b8c0e..56f8976dc7 100644 --- a/pages/docs/tracking-methods/sdks/java/java-flags.mdx +++ b/pages/docs/tracking-methods/sdks/java/java-flags.mdx @@ -20,57 +20,9 @@ Before implementing [Feature Flags](/docs/featureflags), ensure: ## Installing the SDK - The Java Feature Flags SDK is currently in Beta and uses a `-SNAPSHOT` version. You'll need to configure your build tool to pull snapshot versions from Sonatype's snapshot repository. + The Java Feature Flags SDK is currently in Beta and uses a `-SNAPSHOT` version (`1.6.0-SNAPSHOT`). You'll need to configure your build tool to pull snapshot versions from Sonatype's snapshot repository. See the [Sonatype snapshot documentation](https://central.sonatype.org/publish/publish-portal-snapshots/) for instructions on configuring Maven or Gradle. -### Maven - -Add the Sonatype snapshot repository to your `pom.xml`: - -```xml - - - sonatype-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - true - - - -``` - -Then add the Mixpanel Java SDK dependency: - -```xml - - com.mixpanel - mixpanel-java - 1.6.0-SNAPSHOT - -``` - -### Gradle - -Add the Sonatype snapshot repository to your `build.gradle`: - -```groovy -repositories { - maven { - url "https://oss.sonatype.org/content/repositories/snapshots" - } -} -``` - -Then add the Mixpanel Java SDK dependency: - -```groovy -dependencies { - implementation 'com.mixpanel:mixpanel-java:1.6.0-SNAPSHOT' -} -``` - -For more information about working with snapshot versions, see the [Sonatype snapshot documentation](https://central.sonatype.org/publish/publish-portal-snapshots/#publishing-via-other-methods). - ## Flag Evaluation Modes There are two modes available for using the Java SDK for feature flagging: Local Evaluation and Remote Evaluation. From d4b8e96cb45528468b35c2b08ff1aa44c905b6ba Mon Sep 17 00:00:00 2001 From: Mark Siebert Date: Mon, 3 Nov 2025 09:34:47 -0800 Subject: [PATCH 4/4] Remove 'Installing the SDK' header --- pages/docs/tracking-methods/sdks/java/java-flags.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/pages/docs/tracking-methods/sdks/java/java-flags.mdx b/pages/docs/tracking-methods/sdks/java/java-flags.mdx index 56f8976dc7..a140a3fae9 100644 --- a/pages/docs/tracking-methods/sdks/java/java-flags.mdx +++ b/pages/docs/tracking-methods/sdks/java/java-flags.mdx @@ -17,8 +17,6 @@ Before implementing [Feature Flags](/docs/featureflags), ensure: - You are on an Enterprise subscription plan and have the appropriate version of the SDK installed (minimum supported version is `1.6.0-SNAPSHOT`). If not, please follow [this doc](/docs/quickstart/install-mixpanel) to install the SDK. - You have your Project Token from your [Mixpanel Project Settings](/docs/orgs-and-projects/managing-projects#find-your-project-tokens) -## Installing the SDK - The Java Feature Flags SDK is currently in Beta and uses a `-SNAPSHOT` version (`1.6.0-SNAPSHOT`). You'll need to configure your build tool to pull snapshot versions from Sonatype's snapshot repository. See the [Sonatype snapshot documentation](https://central.sonatype.org/publish/publish-portal-snapshots/) for instructions on configuring Maven or Gradle.