Add Require-Capability header requiring osgi.serviceloader.registrar to all imageio OSGi bundle MANIFEST.MF files

This commit is contained in:
Steinar Bang 2023-09-17 18:23:44 +02:00 committed by Harald Kuhr
parent 690cb064e7
commit f0a032a7b9
2 changed files with 16 additions and 3 deletions

View File

@ -40,9 +40,6 @@
<artifactId>maven-bundle-plugin</artifactId> <artifactId>maven-bundle-plugin</artifactId>
<configuration> <configuration>
<instructions> <instructions>
<Require-Capability>
osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"
</Require-Capability>
<Provide-Capability> <Provide-Capability>
osgi.serviceloader; osgi.serviceloader;
osgi.serviceloader=javax.imageio.spi.ImageReaderSpi; osgi.serviceloader=javax.imageio.spi.ImageReaderSpi;

View File

@ -170,4 +170,20 @@
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Require-Capability>osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"</Require-Capability>
</instructions>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project> </project>