Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9cc0dd9

Browse files
authored
Merge pull request #28 from timothyjward/feature/osgi
Add OSGi metadata to the S2 geometry library
2 parents fbea2e3 + 9114c7a commit 9cc0dd9

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
build/
33
target/
44
.project
5-
.classpath
5+
.classpath
6+
.settings

bnd.bnd

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing,
8+
# software distributed under the License is distributed on an
9+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
10+
# KIND, either express or implied. See the License for the
11+
# specific language governing permissions and limitations
12+
# under the License.
13+
14+
15+
# We do not import javax.annotation as these are findbugs
16+
# annotations that aren't needed at runtime. In fact, as the
17+
# findbugs annotations aren't a complete version of the
18+
# javax.annotation they are impossible to safely consume.
19+
20+
# We also exclude com.google.errorprone.annotations as the
21+
# annotations are not needed at runtime
22+
23+
Import-Package: \
24+
!javax.annotation, \
25+
!com.google.errorprone.annotations, \
26+
*
27+
28+
-exportcontents: *;version=${project.version}

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<guava.version>25.1-jre</guava.version>
8686
<jsr305.version>3.0.1</jsr305.version>
8787
<junit.version>4.13</junit.version>
88+
<bnd.version>5.3.0</bnd.version>
8889
</properties>
8990

9091
<scm>
@@ -157,6 +158,19 @@
157158
</executions>
158159
</plugin>
159160

161+
<plugin>
162+
<groupId>biz.aQute.bnd</groupId>
163+
<artifactId>bnd-maven-plugin</artifactId>
164+
<version>${bnd.version}</version>
165+
<executions>
166+
<execution>
167+
<goals>
168+
<goal>bnd-process</goal>
169+
</goals>
170+
</execution>
171+
</executions>
172+
</plugin>
173+
160174
<plugin>
161175
<groupId>org.apache.maven.plugins</groupId>
162176
<artifactId>maven-gpg-plugin</artifactId>
@@ -183,6 +197,16 @@
183197
<autoReleaseAfterClose>false</autoReleaseAfterClose>
184198
</configuration>
185199
</plugin>
200+
201+
<plugin>
202+
<groupId>org.apache.maven.plugins</groupId>
203+
<artifactId>maven-jar-plugin</artifactId>
204+
<configuration>
205+
<archive>
206+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
207+
</archive>
208+
</configuration>
209+
</plugin>
186210
</plugins>
187211
</build>
188212

0 commit comments

Comments
 (0)