From 4dad65cd5aaa0898ff5df7b5df7ada7d5429b33b Mon Sep 17 00:00:00 2001 From: Richard Imaoka Date: Tue, 13 Dec 2016 21:37:41 +0900 Subject: [PATCH] No default OSGi private package to avoid publish build warnings (#21915) * No default OSGi private package, as it caused warnings in publish build (Fixes #21899) * Add comment for empty OSGi private-package settings in SBT --- project/OSGi.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/OSGi.scala b/project/OSGi.scala index 6367c666cb..838fc937fc 100644 --- a/project/OSGi.scala +++ b/project/OSGi.scala @@ -18,7 +18,9 @@ object OSGi { packagedArtifact in (Compile, packageBin) <<= (artifact in (Compile, packageBin), OsgiKeys.bundle).identityMap, // This will fail the build instead of accidentally removing classes from the resulting artifact. // 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 + 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() ) val actor = osgiSettings ++ Seq(