<?xml version="1.0" encoding="UTF-8"?>

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <groupId>org.eclipse.angus</groupId>
        <artifactId>angus-activation-project</artifactId>
        <version>2.0.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <groupId>one.gfw</groupId>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>angus-activation</artifactId>
    <name>Angus Activation Registries</name>
    <description>${project.name} Implementation</description>

    <dependencies>
        <dependency>
            <groupId>one.gfw</groupId>
            <artifactId>jakarta.activation-api</artifactId>
            <version>2.1.1</version>
        </dependency>
        <dependency>
            <groupId>org.graalvm.sdk</groupId>
            <artifactId>graal-sdk</artifactId>
            <optional>true</optional>
            <scope>provided</scope>
        </dependency>
    </dependencies>




 <licenses>
    <license>
      <name>The 3-Clause BSD License</name>
      <url>https://opensource.org/licenses/BSD-3-Clause</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

    <scm>
        <tag>master</tag>
        <url>git@github.com:oneingfw/wtfdb.git</url>
        <connection>scm:git:git@github.com:oneingfw/wtfdb.git</connection>
        <developerConnection>scm:git:git@github.com:oneingfw/wtfdb.git</developerConnection>
    </scm>

    <developers>
        <developer>
            <name>OneInGfw</name>
            <email>oneingfw@gfw.one</email>
            <organization>OneInGfw</organization>
        </developer>
    </developers>


<distributionManagement>
  <snapshotRepository>
    <id>ossrh</id>
    <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
  </snapshotRepository>
  <repository>
    <id>ossrh</id>
    <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  </repository>
</distributionManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Require-Capability><![CDATA[
                            osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)
                              (version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional
                            ]]>
                        </Require-Capability>
                        <Provide-Capability><![CDATA[
                            osgi.service;
                              objectClass:List<String>="org.eclipse.angus.activation.MailcapRegistryProviderImpl";effective:=active,
                            osgi.service;
                              objectClass:List<String>="org.eclipse.angus.activation.MimeTypeRegistryProviderImpl";effective:=active,
                            osgi.serviceloader;
                              osgi.serviceloader="org.eclipse.angus.activation.MailcapRegistryProviderImpl";
                              register:="org.eclipse.angus.activation.MailcapRegistryProviderImpl",
                            osgi.serviceloader;
                              osgi.serviceloader="org.eclipse.angus.activation.MimeTypeRegistryProviderImpl";
                              register:="org.eclipse.angus.activation.MimeTypeRegistryProviderImpl"
                          ]]>
                        </Provide-Capability>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>coverage</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>default-prepare-agent</id>
                                <goals>
                                    <goal>prepare-agent</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>default-report</id>
                                <goals>
                                    <goal>report</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>