Daily, after it finishes its dependencies, calls two tasks: compile and jar. The compile task compiles the java files into class fiies in the normal way via javac. The jar task creates the jar from the output of the compile task, and includes lib/jar/*.jar in the KolMafia-${version}.jar output.I see class files that are in jar files in lib/jar that somehow end up in KoLmafia.jar. I would like to understand how they get there and why the same technique cannot be done for the rhino jar.
In order to use a jar in an include (as this project does), it would need to be in the compile task's classpath.
Code:
import org.mozilla.javascript.BaseFunction;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.NativeJavaObject;
import org.mozilla.javascript.Scriptable;
There are (at least) four ways to deal with this:
1: add all the lib/jar jars to the classpath
2: add the source to the libs directory and build it.
3: add just the lib we need to the classpath.
4: refactor the code to not need the dependency at compile time