Skip to content

Commit 398b3f1

Browse files
committed
Finish separating the library as neoform/vanilla and a neoforge-test
1 parent 87b1dcd commit 398b3f1

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

spatial-neoforge/build.gradle.kts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ neoForge {
2525
create("spatial") {
2626
modSourceSets.add(spatialLib.sourceSets.main)
2727
}
28-
29-
create("spatialtest") {
30-
modSourceSets.add(sourceSets.test)
31-
}
3228
}
3329

3430
unitTest {
@@ -41,18 +37,20 @@ neoForge {
4137
this.type = "gameTestServer"
4238
gameDirectory.set(file("runs/gametest"))
4339

44-
systemProperty("neoforge.enabledGameTestNamespaces", "spatialtest")
40+
systemProperty("neoforge.enabledGameTestNamespaces", "spatial")
4541

4642
this.sourceSet = sourceSets.test
4743
}
4844
}
4945
}
5046

5147
dependencies {
52-
testImplementation(spatialLib)
48+
testCompileOnly(spatialLib)
49+
additionalRuntimeClasspath(spatialLib)
50+
5351
testImplementation(neoforged.testframework)
5452

55-
testImplementation("org.junit.jupiter:junit-jupiter:5.7.1")
53+
testImplementation("org.junit.jupiter:junit-jupiter:5.11.3")
5654
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
5755
}
5856

spatial-neoforge/src/test/resources/META-INF/neoforge.mods.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ loaderVersion = "${loader_version_range}"
33
license = "MIT"
44

55
[[mods]] #mandatory
6-
modId = "spatialtest"
6+
modId = "spatial"
77
version = "0.0.1"
88
displayName = "Spatial Test Mod"
99
authors = "RobotGryphon" #optional
@@ -16,14 +16,14 @@ displayURL = "https://compactmods.dev"
1616
# logoFile="examplemod.png" #optional
1717

1818
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
19-
[[dependencies.spatialtest]] #optional
19+
[[dependencies.spatial]] #optional
2020
modId = "neoforge"
2121
type = "required"
2222
versionRange = "${neo_version_range}"
2323
ordering = "NONE"
2424
side = "BOTH"
2525

26-
[[dependencies.spatialtest]]
26+
[[dependencies.spatial]]
2727
modId = "minecraft"
2828
type = "required"
2929
versionRange = "${minecraft_version_range}"

0 commit comments

Comments
 (0)