Fix #957 - Provide OSGi Metadata in Manifest (#958)

* Fix #957 - Provide OSGi Metadata in Manifest

* replace tabs by whitespaces

* Try once again to fix whitespace/indentation
This commit is contained in:
Christoph Läubrich 2018-02-17 00:35:41 +01:00 committed by Sean Owen
parent f51520212c
commit c8da0c1a94
2 changed files with 46 additions and 0 deletions

20
core/bnd.bnd Normal file
View file

@ -0,0 +1,20 @@
# Copyright 2018 ZXing authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Bundle-SymbolicName: com.google.zxing.core
Import-Package: !com.google.zxing*
-exportcontents: \
com.google.zxing*

View file

@ -60,6 +60,32 @@
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<goals>
<goal>bnd-process</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>