Run modded-common and buildSrc tests as part of check

The modded-common tests only ran when a loader wrapper was built by hand, and the buildSrc tests never ran because Gradle only asks for the buildSrc jar. A root moddedTest task now runs the modded-common suite through the Fabric build and check depends on it; the buildSrc jar depends on the buildSrc tests.

Upstream: 7841efed5
This commit is contained in:
piexel committed 2026-11-10 01:28:02 +01:00
1 parent a02911040d
commit df0186c564
2 files changed
+56

No files matched your search

+6
View File
@@ -18,6 +18,12 @@ repositories {
}
}
// Nothing else asks buildSrc for `test`: Gradle only requests the jar that carries the build logic.
// Gating the jar on the tests is what makes them run at all, and it costs nothing once they are green.
tasks.named('jar').configure {
dependsOn(tasks.named('test'))
}
dependencies {
implementation(gradleApi())
implementation('org.ow2.asm:asm:9.10.1')