Zip files aren't on the classpath by default. The types of artifacts that are included are configured by classpathTypes
. You can add "zip" to it with:
classpathTypes += "zip"
It will then appear on dependencyClasspath
.
However, if it isn't really supposed to go on the classpath, you might pull it out of the update report directly.
bundleFile := {
val report: UpdateReport = update.value
val filter = artifactFilter(name = "bar-bundle", extension = "zip")
val all: Seq[File] = report.matching(filter)
all.headOption getOrElse error("Could not find bar-bundle")
}
See the documentation on UpdateReport for details.