mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 20:27:02 -05:00
Depend on decompilerOptions.getClasspath() build tasks.
This doesn't feel necessary but seems to solve it.
This commit is contained in:
@@ -100,6 +100,7 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
|
||||
|
||||
getOutputs().upToDateWhen((o) -> false);
|
||||
getClasspath().from(decompilerOptions.getClasspath()).finalizeValueOnRead();
|
||||
dependsOn(decompilerOptions.getClasspath().getBuiltBy());
|
||||
}
|
||||
|
||||
@TaskAction
|
||||
@@ -328,8 +329,10 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
|
||||
try {
|
||||
//noinspection unchecked
|
||||
return (Constructor<LoomDecompiler>) Class.forName(clazz).getConstructor();
|
||||
} catch (NoSuchMethodException | ClassNotFoundException e) {
|
||||
} catch (NoSuchMethodException e) {
|
||||
return null;
|
||||
} catch (ClassNotFoundException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user