addClasspath

fun addClasspath(other: MutableClasspath, addAsInput: Boolean = true)

Adds an entire set of other classes from another classpath to this one. Any classes you have defined in this classpath will be overwritten if also present in the other one. If addAsInput is true, the classes from the other classpath will also be included in the resulting JAR file.