Depend on decompilerOptions.getClasspath() build tasks.
This doesn't feel necessary but seems to solve it.dev/0.11
parent
a598625146
commit
a712954be2
|
@ -100,6 +100,7 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
|
||||||
|
|
||||||
getOutputs().upToDateWhen((o) -> false);
|
getOutputs().upToDateWhen((o) -> false);
|
||||||
getClasspath().from(decompilerOptions.getClasspath()).finalizeValueOnRead();
|
getClasspath().from(decompilerOptions.getClasspath()).finalizeValueOnRead();
|
||||||
|
dependsOn(decompilerOptions.getClasspath().getBuiltBy());
|
||||||
}
|
}
|
||||||
|
|
||||||
@TaskAction
|
@TaskAction
|
||||||
|
@ -328,8 +329,10 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
|
||||||
try {
|
try {
|
||||||
//noinspection unchecked
|
//noinspection unchecked
|
||||||
return (Constructor<LoomDecompiler>) Class.forName(clazz).getConstructor();
|
return (Constructor<LoomDecompiler>) Class.forName(clazz).getConstructor();
|
||||||
} catch (NoSuchMethodException | ClassNotFoundException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
return null;
|
return null;
|
||||||
|
} catch (ClassNotFoundException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue