Use maximum compression, jacocoant.jar isn't a bundle.
diff --git a/org.jacoco.agent/buildhook.xml b/org.jacoco.agent/buildhook.xml
index dba6dbf..73d6316 100644
--- a/org.jacoco.agent/buildhook.xml
+++ b/org.jacoco.agent/buildhook.xml
@@ -22,7 +22,7 @@
<!-- The random identifier will be used to create a unique package names -->
<randomid name="randomid"/>
- <jar destfile="${result.dist.lib.dir}/jacocoagent.jar">
+ <jar destfile="${result.dist.lib.dir}/jacocoagent.jar" level="9">
<manifest>
<attribute name="Premain-Class" value="org.jacoco.${randomid}.agent.JacocoAgent"/>
<attribute name="Implementation-Title" value="JaCoCo Java Agent"/>
diff --git a/org.jacoco.ant/buildhook.xml b/org.jacoco.ant/buildhook.xml
index 90f24f6..2be40b2 100644
--- a/org.jacoco.ant/buildhook.xml
+++ b/org.jacoco.ant/buildhook.xml
@@ -18,7 +18,12 @@
<target name="custompackage">
<property name="result.dist.bundle.jar.file" location="${result.dist.lib.dir}/${manifest.Bundle-SymbolicName}_${qualified.bundle.version}.jar"/>
<mkdir dir="${result.dist.lib.dir}"/>
- <jar destfile="${result.dist.bundle.jar.file}" manifest="${result.temp.bundle.manifest.file}">
+ <jar destfile="${result.dist.bundle.jar.file}" level="9">
+ <manifest>
+ <attribute name="Implementation-Title" value="JaCoCo Ant Tasks"/>
+ <attribute name="Implementation-Vendor" value="Mountainminds GmbH & Co. KG"/>
+ <attribute name="Implementation-Version" value="${qualified.bundle.version}"/>
+ </manifest>
<fileset dir="${result.tmp.bundle.classes.dir}"/>
<fileset file="${source.bundle.dir}/about.html"/>
<fileset file="${result.dist.lib.dir}/jacocoagent.jar"/>
diff --git a/org.jacoco.build/buildbundle.xml b/org.jacoco.build/buildbundle.xml
index c06a36f..514f231 100644
--- a/org.jacoco.build/buildbundle.xml
+++ b/org.jacoco.build/buildbundle.xml
@@ -56,7 +56,7 @@
<target name="package" if="do.package" depends="compile,runcustompackage,manifest">
<property name="result.dist.bundle.jar.file" location="${result.dist.lib.dir}/${manifest.Bundle-SymbolicName}_${qualified.bundle.version}.jar"/>
<mkdir dir="${result.dist.lib.dir}"/>
- <jar destfile="${result.dist.bundle.jar.file}" manifest="${result.temp.bundle.manifest.file}">
+ <jar destfile="${result.dist.bundle.jar.file}" manifest="${result.temp.bundle.manifest.file}" level="9">
<fileset dir="${result.tmp.bundle.classes.dir}"/>
<fileset file="${source.bundle.dir}/about.html"/>
</jar>