Fix what the combined gate found in the upstream ports

The NMS adapter compiles against GenerationSessionException, which now carries the API's EngineFailure marker, so it needs the API on its compile path. moddedTest reads sources the NMS convert task rewrites and has to be ordered after it. The lifecycle contract test follows the generateNoise body into generateNoiseChunk.
This commit is contained in:
piexel committed 2026-11-10 01:36:48 +01:00
1 parent 4b1d85177f
commit 5d7d4f9648
2 files changed
+7 -1

No files matched your search

@@ -32,7 +32,7 @@ public class BukkitEngineLifecycleContractTest {
assertTrue(baseHeight.contains("IrisContext.open(currentEngine, lease.sessionId(), null)"));
assertTrue(baseHeight.contains("catch (GenerationSessionException e)"));
String generation = method(source, "public void generateNoise(");
String generation = method(source, "private void generateNoiseChunk(");
assertTrue(generation.contains("throw new IllegalStateException"));
assertTrue(generation.contains("engine.acquireGenerationLease(\"bukkit_terrain_stage\")"));
assertTrue(generation.contains("IrisContext.open(engine, lease.sessionId(), null)"));
+6
View File
@@ -109,6 +109,9 @@ nmsBindings.each { key, value ->
dependencies {
compileOnly(project(':core'))
// GenerationSessionException carries the API's EngineFailure marker; core shades the API.
compileOnly('com.volmit:iris-api')
testCompileOnly('com.volmit:iris-api')
compileOnly(volmLibCoordinate) {
transitive = false
}
@@ -550,6 +553,9 @@ tasks.register('moddedTest', Exec) {
mustRunAfter(tasks.named('jar'))
mustRunAfter(project(':core').tasks.named('check'))
mustRunAfter(project(':spi').tasks.named('jar'))
// The NMS convert tasks rewrite adapters/minecraft-common/src, which is one of the shared inputs;
// under `check` the jar task that otherwise orders them first is not in the graph.
mustRunAfter(subprojects.collect { Project nmsCandidate -> nmsCandidate.tasks.matching { it.name == 'convert' } })
}
tasks.named('fabricJar').configure {