diff --git a/README.md b/README.md index e294811..e4af4fe 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,8 @@ speed at which they compress/decompress/hash bytes. Make sure you have a Java 7 installation in your [Maven toolchains.xml](https://maven.apache.org/guides/mini/guide-using-toolchains.html). You may also need a C compiler. +First run git submodule init and then git submodule update to initialize the lz4 submodule in src/lz4. + Then, run `./mvnw verify`. Building a full artifact with native libraries for all supported platforms is more complex. We do this through github actions. diff --git a/lz4-java.bnd b/lz4-java.bnd index c039cee..a06ba02 100644 --- a/lz4-java.bnd +++ b/lz4-java.bnd @@ -1,5 +1,6 @@ Bundle-SymbolicName: lz4-java Bundle-Name: LZ4 Java Compression -Bundle-Version:${ivy.revision} -Export-Package: net.jpountz.*;version:=${packages.version} - +Bundle-Version: ${version_cleanup;${ivy.version}} +Export-Package: net.jpountz.*;version:=${version_cleanup;${packages.version}} +-noee: true +-removeheaders: Require-Capability diff --git a/pom.xml b/pom.xml index bc9b32a..8f4525a 100644 --- a/pom.xml +++ b/pom.xml @@ -8,11 +8,7 @@ - Compile src/java, src/java-unsafe, and generated sources - Include resources from src/resources - Include native libraries by extracting them from the published 1.8.0 jar - - Wrap the jar with bnd 1.50.0 using lz4-java.bnd to match OSGi metadata - Preserve Automatic-Module-Name: org.lz4.java - - Note: We deliberately do the bnd wrapping after the regular jar build and overwrite the main artifact, - to keep the final jar identical in structure to the Ant "bundle" target output. --> gcc + + + 7.1.0 + ${project.version} + ${project.version} @@ -214,6 +215,7 @@ 3.4.1 + ${project.build.outputDirectory}/META-INF/MANIFEST.MF org.lz4.java @@ -221,6 +223,22 @@ + + biz.aQute.bnd + bnd-maven-plugin + ${bnd.maven.plugin.version} + + + + bnd-process + + + + + lz4-java.bnd + + + org.apache.maven.plugins maven-antrun-plugin @@ -229,7 +247,7 @@ biz.aQute.bnd biz.aQute.bnd.ant - 7.1.0 + ${bnd.maven.plugin.version} org.mvel @@ -257,38 +275,6 @@ run - - - bnd-wrap-jar - package - - - - - - - - - - - - - - - - - - - - - - - run - -