<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>13.2.1.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.central</groupId>
      <artifactId>central-publishing-maven-plugin</artifactId>
      <version>0.8.0</version>
      <extensions>true</extensions>
      <configuration>
        <publishingServerId>ossrh</publishingServerId>
        <autoPublish>true</autoPublish>
      </configuration>
    </plugin>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-gpg-plugin</artifactId>
      <version>3.0.1</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>13.2.1.jre11</version>
                   <type>jar</type>
                   <overWrite>false</overWrite>
                   <outputDirectory>${project.build.directory}/classes</outputDirectory>
                   <includes>**/*.*</includes>
                 </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>!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.azure.core,!com.azure.core.credential,!com.azure.core.http,!com.azure.core.http.policy,!com.azure.core.util,!com.azure.identity,!com.azure.security.keyvault.keys,!com.azure.security.keyvault.keys.cryptography,!com.azure.security.keyvault.keys.cryptography.models,!com.azure.security.keyvault.keys.models,!com.microsoft.aad.msal4j,!jdk.net,!org.antlr.v4.runtime,!org.antlr.v4.runtime.atn,!org.antlr.v4.runtime.dfa,!com.ibm.security.auth.module,!com.sun.security.auth.module,*</Import-Package>
            <DynamicImport-Package>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.azure.core,com.azure.core.credential,com.azure.core.http,com.azure.core.http.policy,com.azure.core.util,com.azure.identity,com.azure.security.keyvault.keys,com.azure.security.keyvault.keys.cryptography,com.azure.security.keyvault.keys.cryptography.models,com.azure.security.keyvault.keys.models,com.microsoft.aad.msal4j,jdk.net,org.antlr.v4.runtime,org.antlr.v4.runtime.atn,org.antlr.v4.runtime.dfa,com.ibm.security.auth.module,com.sun.security.auth.module</DynamicImport-Package>
            <!-- <Fragment-Host></Fragment-Host> -->
          </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>
</project>