<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.lucee</groupId>
  <artifactId>mssql</artifactId>
  <version>12.2.0.jre11</version>
  <name>Microsoft JDBC Driver For SQL Server</name>
  <packaging>bundle</packaging>

  <description>OSGi Version of Microsoft JDBC Driver For SQL Server</description>
  <url>http://maven.lucee.org/mssql/</url>

  <!-- same license as the original jar -->
  <licenses>

	<license>
		<name>MIT license</name>
		<url>http://www.opensource.org/licenses/mit-license.php</url>
		<comments>The MIT License (MIT)</comments>
	</license>

  </licenses>

  <developers>

    <developer>
      <id>micstriit</id>
      <name>Michael Offner</name>
      <email>michael@lucee.org</email>
      <organization>Lucee Association Switzerland</organization>
      <organizationUrl>http://lucee.org</organizationUrl>
      <roles>
        <role>Project-Administrator</role>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>

  </developers>

  <build>
    <plugins>
      <plugin>
      <groupId>org.sonatype.plugins</groupId>
      <artifactId>nexus-staging-maven-plugin</artifactId>
      <version>1.6.3</version>
      <extensions>true</extensions>
      <configuration>
        <serverId>ossrh</serverId>
        <nexusUrl>https://oss.sonatype.org/</nexusUrl>
        <autoReleaseAfterClose>true</autoReleaseAfterClose>
      </configuration>
    </plugin>

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-gpg-plugin</artifactId>
      <version>1.5</version>
      <executions>
        <execution>
          <id>sign-artifacts</id>
          <phase>verify</phase>
          <goals>
            <goal>sign</goal>
          </goals>
        </execution>
      </executions>
    </plugin>

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-release-plugin</artifactId>
      <version>2.5</version>
      <configuration>
        <autoVersionSubmodules>true</autoVersionSubmodules>
        <useReleaseProfile>false</useReleaseProfile>
        <releaseProfiles>release</releaseProfiles>
        <goals>deploy</goals>
      </configuration>
    </plugin>

    <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-dependency-plugin</artifactId>
         <version>2.10</version>
         <executions>
           <execution>
             <id>unpack</id>
             <phase>validate</phase>
             <goals>
               <goal>unpack</goal>
             </goals>
             <configuration>
               <artifactItems>
                 <artifactItem>
                   <groupId>com.microsoft.sqlserver</groupId>
                    <artifactId>mssql-jdbc</artifactId>
                    <version>12.2.0.jre11</version>
                   <type>jar</type>
                   <overWrite>false</overWrite>
                   <outputDirectory>${project.build.directory}/classes</outputDirectory>
                 </artifactItem>
               </artifactItems>
               <overWriteReleases>true</overWriteReleases>
               <overWriteSnapshots>true</overWriteSnapshots>
             </configuration>
           </execution>
         </executions>
       </plugin>

      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>5.1.2</version>
        <configuration>
          <unpackBundle>true</unpackBundle>
          <instructions>
            <Bundle-Name>org.lucee.mssql</Bundle-Name>
            <Bundle-SymbolicName>org.lucee.mssql</Bundle-SymbolicName>
            <Bundle-Description>OSGI version of jar ${project.name}</Bundle-Description>
            <Export-Package>*,META-INF.services.*</Export-Package>
            <!-- <Require-Bundle></Require-Bundle> -->
            <!-- <Require-Bundle-Fragment></Require-Bundle-Fragment> -->
            <Import-Package>!com.azure.security.keyvault.keys.models,!com.azure.security.keyvault.keys.cryptography.models,!com.azure.security.keyvault.keys.cryptography,!com.azure.security.keyvault.keys,!com.azure.identity,!com.azure.core.util,!com.azure.core.http.policy,!com.azure.core.http,!com.azure.core.credential,!com.google.gson,!org.antlr.v4.runtime.dfa,!org.antlr.v4.runtime.atn,!org.antlr.v4.runtime,!org.osgi.framework,!org.osgi.service.jdbc,!com.microsoft.aad.adal4j,!com.microsoft.azure,!com.microsoft.azure.keyvault,!com.microsoft.azure.keyvault.authentication,!com.microsoft.azure.keyvault.models,!com.microsoft.azure.keyvault.webkey,!com.microsoft.azure.serializer,!com.microsoft.rest,!com.microsoft.rest.credentials,!com.microsoft.rest.protocol,!okhttp3,!retrofit2,!com.microsoft.aad.msal4,!org.bouncycastle.openssl.jcajce,!org.bouncycastle.jce.provider,!org.bouncycastle.openssl,!com.microsoft.aad.msal4j,!reactor.core.publisher,!jdk.net,*</Import-Package>
            <DynamicImport-Package>com.azure.security.keyvault.keys.models,com.azure.security.keyvault.keys.cryptography.models,com.azure.security.keyvault.keys.cryptography,com.azure.security.keyvault.keys,com.azure.identity,com.azure.core.util,com.azure.core.http.policy,com.azure.core.http,com.azure.core.credential,com.google.gson,org.antlr.v4.runtime.dfa,org.antlr.v4.runtime.atn,org.antlr.v4.runtime,org.osgi.framework,org.osgi.service.jdbc,com.microsoft.aad.adal4j,com.microsoft.azure,com.microsoft.azure.keyvault,com.microsoft.azure.keyvault.authentication,com.microsoft.azure.keyvault.models,com.microsoft.azure.keyvault.webkey,com.microsoft.azure.serializer,com.microsoft.rest,com.microsoft.rest.credentials,com.microsoft.rest.protocol,okhttp3,retrofit2,com.microsoft.aad.msal4,org.bouncycastle.openssl.jcajce,org.bouncycastle.jce.provider,org.bouncycastle.openssl,com.microsoft.aad.msal4j,reactor.core.publisher,jdk.net</DynamicImport-Package>
            <!-- <Fragment-Host></Fragment-Host> -->
            <Bundle-Vendor>Microsoft Corporation</Bundle-Vendor>
						<Require-Capability>osgi.ee&#x3b;filter&#x3a;&#x3d;&#x22;&#x28;&#x26;&#x28;osgi.ee&#x3d;JavaSE&#x29;&#x28;version&#x3d;11&#x29;&#x29;&#x22;</Require-Capability>
						<Built-By>cloudtest</Built-By>
						<Manifest-Version>1.0</Manifest-Version>
						<Bundle-License>http&#x3a;&#x2f;&#x2f;www.opensource.org&#x2f;licenses&#x2f;mit-license.php</Bundle-License>
						<Build-Jdk-Spec>19</Build-Jdk-Spec>
						<Bnd-LastModified>1675127422877</Bnd-LastModified>
						<Build-Jdk>19</Build-Jdk>
						<Tool>Bnd-5.1.1.202006162103</Tool>
						<Bundle-Description>Microsoft JDBC Driver for SQL Server.</Bundle-Description>
						<Automatic-Module-Name>com.microsoft.sqlserver.jdbc</Automatic-Module-Name>
						<Created-By>Apache Maven Bundle Plugin</Created-By>
            <!-- Embed Dependency -->
          </instructions>
        </configuration>
        <extensions>true</extensions>
      </plugin>


    </plugins>
  </build>


  <scm>
    <url>https://github.com/lucee/osgi-bundle-mssql</url>
    <connection>scm:git:git://github.com/lucee/osgi-bundle-mssql.git</connection>
    <developerConnection>scm:git:git@github.com:lucee/osgi-bundle-mssql.git</developerConnection>
    <tag>Microsoft JDBC Driver For SQL Server OSGi library</tag>
  </scm>

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

</project>