diff options
author | Evgeny Mandrikov <Godin@users.noreply.github.com> | 2017-01-17 22:42:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-17 22:42:02 +0100 |
commit | d1a0f198cfc5e6397d7d6f9b912b85a0211201c7 (patch) | |
tree | 0f7406b602a97d75069f686a92f51692117a9093 /org.jacoco.ant | |
parent | d80b6b55af2c6ad10c04067ef7853161deac7e83 (diff) | |
download | jacoco-d1a0f198cfc5e6397d7d6f9b912b85a0211201c7.tar.gz |
Generate OSGi Manifests (#211)
Diffstat (limited to 'org.jacoco.ant')
-rw-r--r-- | org.jacoco.ant/META-INF/MANIFEST.MF | 20 | ||||
-rw-r--r-- | org.jacoco.ant/pom.xml | 35 |
2 files changed, 35 insertions, 20 deletions
diff --git a/org.jacoco.ant/META-INF/MANIFEST.MF b/org.jacoco.ant/META-INF/MANIFEST.MF deleted file mode 100644 index 4788a4ce..00000000 --- a/org.jacoco.ant/META-INF/MANIFEST.MF +++ /dev/null @@ -1,20 +0,0 @@ -Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: JaCoCo Ant Tasks
-Bundle-SymbolicName: org.jacoco.ant
-Bundle-Version: 0.7.9.qualifier
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: Mountainminds GmbH & Co. KG and Contributors
-Require-Bundle: org.apache.ant;bundle-version="[1.7.0,2.0.0)"
-Import-Package: org.jacoco.agent;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.core.analysis;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.core.data;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.core.instr;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.core.runtime;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.core.tools;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.report;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.report.check;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.report.csv;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.report.html;bundle-version="[0.7.9,0.7.10)",
- org.jacoco.report.xml;bundle-version="[0.7.9,0.7.10)",
- org.objectweb.asm;version="[5.2.0,5.3.0)"
diff --git a/org.jacoco.ant/pom.xml b/org.jacoco.ant/pom.xml index 16e6cf71..14d0f8e6 100644 --- a/org.jacoco.ant/pom.xml +++ b/org.jacoco.ant/pom.xml @@ -67,6 +67,41 @@ <shadedPattern>org.jacoco.asm</shadedPattern> </relocation> </relocations> + <transformers> + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> + <manifestEntries> + <Implementation-Title>${project.description}</Implementation-Title> + <Implementation-Vendor>${project.organization.name}</Implementation-Vendor> + <Implementation-Version>${project.version}</Implementation-Version> + </manifestEntries> + </transformer> + </transformers> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <executions> + <execution> + <!-- + None of resource tranformers from maven-shade-plugin + (including combination of DontIncludeResourceTransformer and ManifestResourceTransformer) + does not allow us to leave only desired entries and remove others from META-INF/MANIFEST.MF + So we use goal "bundle" instead of "manifest". + This introduces some redundant operations, but their cost is negligible. + --> + <phase>package</phase> + <goals> + <goal>bundle</goal> + </goals> + <configuration> + <excludeDependencies>true</excludeDependencies> + <instructions> + <Require-Bundle>org.apache.ant;bundle-version="[1.7.0,2.0.0)"</Require-Bundle> + </instructions> </configuration> </execution> </executions> |