Skip to content

Commit

Permalink
Fix GuideExport, fix flaky gametest.
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Dec 24, 2023
1 parent e501ce2 commit 9296ad2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
23 changes: 7 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,10 @@ configurations {
transitive = false
}
buildtoolsImplementation.extendsFrom(compileClasspath)

internal {
visible = false
canBeConsumed = false
canBeResolved = false
}
configurations.compileClasspath.extendsFrom(internal)
configurations.runtimeClasspath.extendsFrom(internal)
configurations.testCompileClasspath.extendsFrom(internal)
configurations.testRuntimeClasspath.extendsFrom(internal)
// Dependencies only used for the guide export, but not shipped
guideExportOnly
configurations.compileClasspath.extendsFrom(guideExportOnly)
configurations.runtimeClasspath.extendsFrom(guideExportOnly)
}

repositories {
Expand Down Expand Up @@ -127,7 +121,7 @@ dependencies {
transitive = false
}
// Used for the guide export
implementation("org.bytedeco:ffmpeg-platform:${ffmpeg_version}")
guideExportOnly("org.bytedeco:ffmpeg-platform:${ffmpeg_version}")

implementation "net.neoforged:neoforge:${neoforge_version}"

Expand Down Expand Up @@ -355,11 +349,8 @@ runs {
modSources = [sourceSets.main]

dependencies {
runtime project(":libs:markdown")
runtime "io.methvin:directory-watcher:${directory_watcher_version}"
runtime "org.yaml:snakeyaml:${snakeyaml_version}"
runtime "com.google.flatbuffers:flatbuffers-java:${flatbuffers_version}"
runtime "org.bytedeco:ffmpeg-platform:${ffmpeg_version}"
runtime configurations.shaded
runtime configurations.guideExportOnly
}
}
client {
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ pluginManagement {
}
}

rootProject.name = 'ae2';

include 'libs:markdown'
include 'libs:junit'
11 changes: 5 additions & 6 deletions src/main/java/appeng/server/testplots/ItemP2PTestPlots.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ public static void item(PlotBuilder plot) {
var chestPos = origin.east().east();
plot.chest(chestPos);

plot.test(helper -> {
helper.succeedWhen(() -> {
helper.assertContainerContains(chestPos, Items.BEDROCK);
});
});
plot.test(helper -> helper
.startSequence()
.thenWaitUntil(() -> helper.assertContainerContains(chestPos, Items.BEDROCK))
.thenSucceed());
}

@TestPlot("p2p_recursive_item")
Expand All @@ -44,7 +43,7 @@ public static void recursiveItemP2P(PlotBuilder plot) {
plot.block(origin, AEBlocks.DEBUG_ITEM_GEN);
plot.creativeEnergyCell(origin.south().above().above());
var curPos = origin.south();
for (var i = 0; i < 10; i++) {
for (var i = 0; i < 5; i++) {
placeSubnet(plot, curPos);
curPos = curPos.south(6);
}
Expand Down

0 comments on commit 9296ad2

Please sign in to comment.