From d5bc6a093ca909dd978fac47d35412d70b870da2 Mon Sep 17 00:00:00 2001 From: Luben Karavelov Date: Tue, 31 Oct 2023 14:07:02 +0000 Subject: [PATCH] Fix the OSGI version string --- build.sbt | 4 ++-- version | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 9bcd842..f4d5cea 100644 --- a/build.sbt +++ b/build.sbt @@ -169,7 +169,7 @@ Compile / packageBin / packageOptions ++= Seq( Package.ManifestAttributes(new java.util.jar.Attributes.Name("Bundle-Description") -> description.value), Package.ManifestAttributes(new java.util.jar.Attributes.Name("Bundle-Vendor") -> organization.value), Package.ManifestAttributes(new java.util.jar.Attributes.Name("Bundle-License") -> "https://opensource.org/licenses/BSD-2-Clause;description=BSD 2-Clause License"), - Package.ManifestAttributes(new java.util.jar.Attributes.Name("Bundle-Version") -> version.value), + Package.ManifestAttributes(new java.util.jar.Attributes.Name("Bundle-Version") -> version.value.replace("-", ".")), Package.ManifestAttributes(new java.util.jar.Attributes.Name("Bundle-ManifestVersion") -> version.value), Package.ManifestAttributes(new java.util.jar.Attributes.Name("Bundle-NativeCode") -> s"""darwin/x86_64/libzstd-jni-${version.value}.dylib;osname=MacOS;osname=MacOSX;processor=x86_64, @@ -189,7 +189,7 @@ Compile / packageBin / packageOptions ++= Seq( |win/amd64/libzstd-jni-${version.value}.dll;osname=Win32;processor=amd64, |win/aarch64/libzstd-jni-${version.value}.dll;osname=Win32;processor=aarch64, |win/x86/libzstd-jni-${version.value}.dll;osname=Win32;processor=x86""".stripMargin.replace("\n", "")), - Package.ManifestAttributes(new java.util.jar.Attributes.Name("Export-Package") -> s"""com.github.luben.zstd;version="${version.value}",com.github.luben.zstd.util;version="${version.value}""""), + Package.ManifestAttributes(new java.util.jar.Attributes.Name("Export-Package") -> s"""com.github.luben.zstd;version="${version.value.replace("-", ".")}",com.github.luben.zstd.util;version="${version.value.replace("-", ".")}""""), Package.ManifestAttributes(new java.util.jar.Attributes.Name("Import-Package") -> "org.osgi.framework;resolution:=optional"), Package.ManifestAttributes(new java.util.jar.Attributes.Name("Private-Package") -> """darwin.aarch64, diff --git a/version b/version index eb87852..2000708 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.5.5-7 +1.5.5-8