Skip to content

Commit 8db055c

Browse files
Copilotmsiebert
andcommitted
Simplify snapshot version setup by linking to Sonatype docs instead of inlining
Co-authored-by: msiebert <[email protected]>
1 parent 73f6cc6 commit 8db055c

File tree

1 file changed

+1
-49
lines changed

1 file changed

+1
-49
lines changed

pages/docs/tracking-methods/sdks/java/java-flags.mdx

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -20,57 +20,9 @@ Before implementing [Feature Flags](/docs/featureflags), ensure:
2020
## Installing the SDK
2121

2222
<Callout type="info">
23-
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.
23+
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.
2424
</Callout>
2525

26-
### Maven
27-
28-
Add the Sonatype snapshot repository to your `pom.xml`:
29-
30-
```xml
31-
<repositories>
32-
<repository>
33-
<id>sonatype-snapshots</id>
34-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
35-
<snapshots>
36-
<enabled>true</enabled>
37-
</snapshots>
38-
</repository>
39-
</repositories>
40-
```
41-
42-
Then add the Mixpanel Java SDK dependency:
43-
44-
```xml
45-
<dependency>
46-
<groupId>com.mixpanel</groupId>
47-
<artifactId>mixpanel-java</artifactId>
48-
<version>1.6.0-SNAPSHOT</version>
49-
</dependency>
50-
```
51-
52-
### Gradle
53-
54-
Add the Sonatype snapshot repository to your `build.gradle`:
55-
56-
```groovy
57-
repositories {
58-
maven {
59-
url "https://oss.sonatype.org/content/repositories/snapshots"
60-
}
61-
}
62-
```
63-
64-
Then add the Mixpanel Java SDK dependency:
65-
66-
```groovy
67-
dependencies {
68-
implementation 'com.mixpanel:mixpanel-java:1.6.0-SNAPSHOT'
69-
}
70-
```
71-
72-
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).
73-
7426
## Flag Evaluation Modes
7527

7628
There are two modes available for using the Java SDK for feature flagging: Local Evaluation and Remote Evaluation.

0 commit comments

Comments
 (0)