Skip to content

Commit 375d22e

Browse files
committed
skip afterEvaluate if evaluation failed
1 parent 02fba43 commit 375d22e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/net/ornithemc/ploceus/PloceusGradleExtension.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ private void apply() {
166166
loom.addMinecraftJarProcessor(NesterProcessor.class, this);
167167

168168
project.afterEvaluate(project -> {
169+
// why is there no afterSuccessfulEvaluate or something?
170+
if (project.getState().getFailure() != null) {
171+
return;
172+
}
173+
169174
project.getTasks().configureEach(task -> {
170175
if (task instanceof AbstractRemapJarTask remapJarTask) {
171176
String dstNs = remapJarTask.getTargetNamespace().get();

0 commit comments

Comments
 (0)