From 76f7696e11bd4244bce36fea7f156bfbd5f91293 Mon Sep 17 00:00:00 2001 From: thatcomputerguy0101 Date: Tue, 26 May 2026 22:30:22 -0400 Subject: [PATCH 1/2] Add module name to the package manifest attributes --- build.sbt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sbt b/build.sbt index 36d6f05e..d84028f2 100644 --- a/build.sbt +++ b/build.sbt @@ -21,6 +21,10 @@ ThisBuild / scmInfo := ) ) +ThisBuild / packageOptions += Package.ManifestAttributes( + "Automatic-Module-Name" -> s"${OsgiKeys.bundleSymbolicName}" +) + ThisBuild / developers := List( Developer( From b0adb4c668ad1a73d68ec97b0f8d707220f18fd1 Mon Sep 17 00:00:00 2001 From: thatcomputerguy0101 Date: Tue, 26 May 2026 23:11:23 -0400 Subject: [PATCH 2/2] Move module name modification and change to root package export `-` is not a vaild character for module names --- build.sbt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index d84028f2..a86fdabf 100644 --- a/build.sbt +++ b/build.sbt @@ -21,10 +21,6 @@ ThisBuild / scmInfo := ) ) -ThisBuild / packageOptions += Package.ManifestAttributes( - "Automatic-Module-Name" -> s"${OsgiKeys.bundleSymbolicName}" -) - ThisBuild / developers := List( Developer( @@ -130,6 +126,9 @@ lazy val msgpackCore = Project(id = "msgpack-core", base = file("msgpack-core")) "org.msgpack.value.impl" ), OsgiKeys.importPackage := Seq("!android.os", "!sun.*"), + packageOptions += Package.ManifestAttributes( + "Automatic-Module-Name" -> OsgiKeys.exportPackage.value.head + ), testFrameworks += new TestFramework("wvlet.airspec.Framework"), Test / javaOptions ++= Seq( @@ -164,6 +163,9 @@ lazy val msgpackJackson = Project(id = "msgpack-jackson", base = file("msgpack-j description := "Jackson extension that adds support for MessagePack", OsgiKeys.bundleSymbolicName := "org.msgpack.msgpack-jackson", OsgiKeys.exportPackage := Seq("org.msgpack.jackson", "org.msgpack.jackson.dataformat"), + packageOptions += Package.ManifestAttributes( + "Automatic-Module-Name" -> OsgiKeys.exportPackage.value.head + ), libraryDependencies ++= Seq( "com.fasterxml.jackson.core" % "jackson-databind" % "2.20.0",