Skip to content

Commit

Permalink
Merge pull request #940 from fipro78/master
Browse files Browse the repository at this point in the history
Add OSGi metadata and correct repository build
  • Loading branch information
nikhilnanivadekar committed Jul 15, 2020
2 parents a058ad2 + 6f3c16a commit db1e10f
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 15 deletions.
6 changes: 6 additions & 0 deletions eclipse-collections-api/bnd.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package-version=${version;===;${Bundle-Version}}

Automatic-Module-Name: org.eclipse.collections.api
Bundle-SymbolicName: org.eclipse.collections.api
Export-Package: \
*;version="${package-version}"
9 changes: 6 additions & 3 deletions eclipse-collections-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,16 @@
<artifactId>maven-source-plugin</artifactId>
</plugin>

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.eclipse.collections.api</Automatic-Module-Name>
</manifestEntries>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
Expand Down
7 changes: 7 additions & 0 deletions eclipse-collections/bnd.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package-version=${version;===;${Bundle-Version}}

Automatic-Module-Name: org.eclipse.collections.impl
Bundle-SymbolicName: org.eclipse.collections.impl

Export-Package: \
org.eclipse.collections.impl.*;version="${package-version}"
9 changes: 6 additions & 3 deletions eclipse-collections/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@
<artifactId>maven-source-plugin</artifactId>
</plugin>

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.eclipse.collections.impl</Automatic-Module-Name>
</manifestEntries>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
Expand Down
3 changes: 0 additions & 3 deletions p2-feature/org.eclipse.collections.feature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
</parent>
<artifactId>org.eclipse.collections.feature</artifactId>
<packaging>eclipse-feature</packaging>
<properties>
<collections.repository.url>file://${project.basedir}/../../p2-repository/org.eclipse.collections/target/repository</collections.repository.url>
</properties>
<build>
<plugins>
<plugin>
Expand Down
13 changes: 10 additions & 3 deletions p2-feature/org.eclipse.collections.repository/category.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/org.eclipse.collections.feature.source_10.1.0.qualifier.jar" id="org.eclipse.collections.feature.source" version="10.1.0.qualifier">
<category name="org.eclipse.collections.source"/>
<feature url="features/org.eclipse.collections.feature_10.3.0.qualifier.jar" id="org.eclipse.collections.feature" version="10.3.0.qualifier">
<category name="category_org.eclipse.collections"/>
</feature>
<category-def name="org.eclipse.collections" label="Eclipse Collections"/>
<feature url="features/org.eclipse.collections.feature.source_10.3.0.qualifier.jar" id="org.eclipse.collections.feature.source" version="10.3.0.qualifier">
<category name="category_org.eclipse.collections"/>
</feature>
<category-def name="category_org.eclipse.collections" label="Eclipse Collections">
<description>Eclipse Collections is a collections framework for Java. It has JDK-compatible List, Set and Map
implementations with a rich API and set of utility classes that work with any JDK compatible Collections,
Arrays, Maps or Strings. The iteration protocol was inspired by the Smalltalk collection framework.</description>
</category-def>
</site>
3 changes: 0 additions & 3 deletions p2-feature/org.eclipse.collections.repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
</parent>
<artifactId>p2-repository</artifactId>
<packaging>eclipse-repository</packaging>
<properties>
<collections.repository.url>file://${project.basedir}/../../p2-repository/org.eclipse.collections/target/repository</collections.repository.url>
</properties>
<build>
<plugins>
<plugin>
Expand Down
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,19 @@
</lifecycleMappingMetadata>
</configuration>
</plugin>

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>5.1.1</version>
<executions>
<execution>
<goals>
<goal>bnd-process</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

Expand Down

0 comments on commit db1e10f

Please sign in to comment.