Fix JDK9 plugin when using OSGi

This commit is contained in:
JingZhang Chen 2024-01-26 10:15:24 +08:00 committed by Matthew de Detrich
parent 325b463ee1
commit aeb6c0da40

View file

@ -52,7 +52,10 @@ object Jdk9 extends AutoPlugin {
// so we add them to the fullClasspath instead.
// Compile / packageBin / mappings
// ++= (CompileJdk9 / products).value.flatMap(Path.allSubpaths),
Compile / fullClasspath ++= (CompileJdk9 / exportedProducts).value)
// After sbt-osgi 0.9.5, there not use fullClasspath as package source, so we have to
// add jdk9 products to dependencyClasspathAsJars instead.
// Compile / fullClasspath ++= (CompileJdk9 / exportedProducts).value)
Compile / dependencyClasspathAsJars ++= (CompileJdk9 / exportedProducts).value)
lazy val testSettings = Seq((Test / test) := {
(Test / test).value