Skip to content

Commit eabfed5

Browse files
committed
Document jar-in-jar (JIJ)
1 parent 9abe1f4 commit eabfed5

3 files changed

Lines changed: 21 additions & 4 deletions

File tree

‎content/docs/java/index.mdx‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,17 @@ Choose the artifact for your platform:
6464
Fabric and NeoForge artifacts include the SDK version and the Minecraft version range you want to target:
6565

6666
```kts
67-
implementation("dev.faststats.metrics:fabric:0.27.2+mc26.1-26.3")
68-
implementation("dev.faststats.metrics:neoforge:0.27.2+mc26.1-26.2")
67+
implementation("dev.faststats.metrics:fabric:0.29.0+mc26.1-26.3")
68+
include("dev.faststats.metrics:fabric:0.29.0+mc26.1-26.3")
69+
70+
implementation("dev.faststats.metrics:neoforge:0.29.0+mc26.1-26.2")
71+
include("dev.faststats.metrics:neoforge:0.29.0+mc26.1-26.2")
6972
```
7073

74+
Use both `implementation` and `include` for modded platforms. FastStats is
75+
provided as a mod through jar-in-jar, so `implementation` puts it on your compile
76+
classpath and `include` bundles it into your mod JAR.
77+
7178
The version format is `{sdk-version}+mc{from}-{to}`, where `{sdk-version}` is
7279
the FastStats SDK version and `{from}-{to}` is the supported Minecraft version
7380
range for that artifact.

‎content/docs/java/platform/fabric.mdx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ Use `dev.faststats.fabric.FabricContext` for Fabric mods. Requires Java 21+.
1616
**Artifact:** `dev.faststats.metrics:fabric`
1717

1818
```kts
19-
implementation("dev.faststats.metrics:fabric:0.27.2+mc26.1-26.3")
19+
implementation("dev.faststats.metrics:fabric:0.29.0+mc26.1-26.3")
20+
include("dev.faststats.metrics:fabric:0.29.0+mc26.1-26.3")
2021
```
2122

23+
Use both `implementation` and `include`. FastStats is provided as a mod through
24+
jar-in-jar, so `implementation` puts it on your compile classpath and `include`
25+
bundles it into your mod JAR.
26+
2227
The version format is `{sdk-version}+mc{from}-{to}`, where `{sdk-version}` is
2328
the FastStats SDK version and `{from}-{to}` is the supported Minecraft version
2429
range for that artifact.

‎content/docs/java/platform/neoforge.mdx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ Use `dev.faststats.neoforge.NeoForgeContext` for NeoForge mods. Requires Java 21
1616
**Artifact:** `dev.faststats.metrics:neoforge`
1717

1818
```kts
19-
implementation("dev.faststats.metrics:neoforge:0.27.2+mc26.1-26.2")
19+
implementation("dev.faststats.metrics:neoforge:0.29.0+mc26.1-26.2")
20+
include("dev.faststats.metrics:neoforge:0.29.0+mc26.1-26.2")
2021
```
2122

23+
Use both `implementation` and `include`. FastStats is provided as a mod through
24+
jar-in-jar, so `implementation` puts it on your compile classpath and `include`
25+
bundles it into your mod JAR.
26+
2227
The version format is `{sdk-version}+mc{from}-{to}`, where `{sdk-version}` is
2328
the FastStats SDK version and `{from}-{to}` is the supported Minecraft version
2429
range for that artifact.

0 commit comments

Comments
 (0)