Eplicit Java version requirement for OSGi #23795 (#23813)

This commit is contained in:
Johan Andrén 2017-10-15 18:39:58 +02:00 committed by Konrad `ktoso` Malawski
parent 501c3f9fb8
commit 1b216b28d4

View file

@ -20,7 +20,11 @@ object OSGi {
// Each package contained in a project MUST be known to be private or exported, if it's undecided we MUST resolve this
OsgiKeys.failOnUndecidedPackage := true,
// By default an entry is generated from module group-id, but our modules do not adhere to such package naming
OsgiKeys.privatePackage := Seq())
OsgiKeys.privatePackage := Seq(),
// Explicitly specify the version of JavaSE required #23795 (rather depend on
// figuring that out from the JDK it was built with)
OsgiKeys.requireCapability := "osgi.ee;filter:=\"(&(osgi.ee=JavaSE)(version>=1.8))\""
)
val actor = osgiSettings ++ Seq(
OsgiKeys.exportPackage := Seq("akka*"),