Skip to content

Commit 8657ce9

Browse files
committed
Test: Baritone
1 parent 5dd0f02 commit 8657ce9

File tree

6 files changed

+28
-19
lines changed

6 files changed

+28
-19
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,20 @@ subprojects {
4646
isCanBeConsumed = false
4747
isCanBeResolved = true
4848
}
49+
4950
val shadow = named<ShadowJar>("shadowJar") {
5051
archiveVersion = versionWithMCVersion
5152
archiveClassifier.set("shadow")
5253
configurations = listOf(shadowCommon)
5354
}
55+
5456
named<RemapJarTask>("remapJar") {
5557
dependsOn(shadow)
5658
inputFile = shadow.flatMap { it.archiveFile }
5759
archiveVersion = versionWithMCVersion
5860
archiveClassifier = ""
5961
}
62+
6063
jar {
6164
enabled = false
6265
}

common/build.gradle.kts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ loom {
1111
}
1212

1313
repositories {
14+
maven("https://impactdevelopment.github.io/maven/")
1415
maven("https://maven.fabricmc.net/")
15-
maven("https://jitpack.io")
16-
17-
mavenCentral()
18-
mavenLocal()
1916
}
2017

2118
dependencies {
@@ -27,9 +24,9 @@ dependencies {
2724
modApi("dev.architectury:architectury:$architecturyVersion")
2825

2926
// Add dependencies on the required Kotlin modules.
30-
modImplementation("net.fabricmc:fabric-language-kotlin:$fabricKotlinVersion")
3127
implementation("org.reflections:reflections:0.10.2")
32-
implementation(annotationProcessor("io.github.llamalad7:mixinextras-common:$mixinExtrasVersion")!!)
28+
modImplementation("net.fabricmc:fabric-language-kotlin:$fabricKotlinVersion")
29+
modImplementation("baritone-api:baritone-api:1.10.2")
3330
}
3431

3532
// Avoid nested jars

fabric/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ loom {
1515
enableTransitiveAccessWideners.set(true)
1616
}
1717

18+
repositories {
19+
maven("https://impactdevelopment.github.io/maven/")
20+
}
21+
1822
val common: Configuration by configurations.creating {
1923
configurations.compileClasspath.get().extendsFrom(this)
2024
configurations.runtimeClasspath.get().extendsFrom(this)
@@ -49,9 +53,10 @@ dependencies {
4953
// Add dependencies on the required Kotlin modules.
5054
includeLib("org.reflections:reflections:0.10.2")
5155
includeLib("org.javassist:javassist:3.27.0-GA")
56+
includeLib("nether-pathfinder:nether-pathfinder:1.4.1")
5257

5358
// Add mods to the mod jar
54-
// includeMod(...)
59+
includeMod("baritone-api:baritone-unoptimized-fabric:1.10.2")
5560

5661
// Common (Do not touch)
5762
common(project(":common", configuration = "namedElements")) { isTransitive = false }

forge/build.gradle.kts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ loom {
3535
repositories {
3636
maven("https://thedarkcolour.github.io/KotlinForForge/")
3737
maven("https://cursemaven.com")
38+
maven("https://impactdevelopment.github.io/maven/")
3839
}
3940

4041
val common: Configuration by configurations.creating {
@@ -70,20 +71,21 @@ dependencies {
7071
// Add dependencies on the required Kotlin modules.
7172
includeLib("org.reflections:reflections:0.10.2")
7273
includeLib("org.javassist:javassist:3.27.0-GA")
73-
74-
implementation("io.github.llamalad7:mixinextras-forge:$mixinExtrasVersion")
75-
compileOnly(annotationProcessor("io.github.llamalad7:mixinextras-common:$mixinExtrasVersion")!!)
74+
includeLib("nether-pathfinder:nether-pathfinder:1.4.1")
7675

7776
// Add mods to the mod jar
7877
includeMod("thedarkcolour:kotlinforforge:$kotlinForgeVersion")
79-
80-
// Bugfixes
81-
compileOnly(kotlin("stdlib")) // Hack https://github.com/thedarkcolour/KotlinForForge/issues/93
78+
includeMod("baritone:baritone-unoptimized-forge:1.10.2")
8279

8380
// Common (Do not touch)
84-
common(project(":common", configuration = "namedElements")) { isTransitive = false } // We cannot common here because it is treated as a different mod and forge will panic
81+
common(project(":common", configuration = "namedElements")) { isTransitive = false }
8582
shadowCommon(project(path = ":common", configuration = "transformProductionForge")) { isTransitive = false }
8683

84+
// Others
85+
implementation("io.github.llamalad7:mixinextras-forge:$mixinExtrasVersion")
86+
compileOnly(annotationProcessor("io.github.llamalad7:mixinextras-common:$mixinExtrasVersion")!!)
87+
compileOnly(kotlin("stdlib")) // Hack https://github.com/thedarkcolour/KotlinForForge/issues/93
88+
8789
// Finish the configuration
8890
setupConfigurations()
8991
}

neoforge/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ loom {
1717
repositories {
1818
maven("https://maven.neoforged.net/releases/")
1919
maven("https://thedarkcolour.github.io/KotlinForForge/")
20+
maven("https://impactdevelopment.github.io/maven/")
2021
}
2122

2223
val common: Configuration by configurations.creating {
@@ -35,7 +36,7 @@ fun DependencyHandlerScope.setupConfigurations() {
3536
}
3637

3738
includeMod.dependencies.forEach {
38-
implementation(it)
39+
modImplementation(it)
3940
}
4041
}
4142

@@ -47,10 +48,11 @@ dependencies {
4748
modApi("dev.architectury:architectury-neoforge:$architecturyVersion")
4849

4950
// Add dependencies on the required Kotlin modules.
50-
// includeLib(...)
51+
includeLib("nether-pathfinder:nether-pathfinder:1.4.1")
5152

5253
// Add mods to the mod jar
5354
includeMod("thedarkcolour:kotlinforforge-neoforge:$kotlinForgeVersion")
55+
includeMod("baritone-api:baritone-unoptimized-neoforge:1.10.2")
5456

5557
// Common (Do not touch)
5658
common(project(":common", configuration = "namedElements")) { isTransitive = false }

quilt/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ loom {
2424

2525
repositories {
2626
maven("https://maven.quiltmc.org/repository/release/")
27+
maven("https://impactdevelopment.github.io/maven/")
2728
}
2829

2930
val common: Configuration by configurations.creating {
@@ -43,7 +44,6 @@ fun DependencyHandlerScope.setupConfigurations() {
4344

4445
includeMod.dependencies.forEach {
4546
modImplementation(it)
46-
include(it)
4747
}
4848
}
4949

@@ -66,10 +66,10 @@ dependencies {
6666
// Add dependencies on the required Kotlin modules.
6767
includeLib("org.reflections:reflections:0.10.2")
6868
includeLib("org.javassist:javassist:3.27.0-GA")
69+
includeLib("nether-pathfinder:nether-pathfinder:1.4.1")
6970

7071
// Add mods to the mod jar
71-
// includeMod(...)
72-
72+
includeMod("baritone-api:baritone-unoptimized-fabric:1.10.2")
7373

7474
// Common (Do not touch)
7575
common(project(":common", configuration = "namedElements")) { isTransitive = false }

0 commit comments

Comments
 (0)