<?xml version="1.0" encoding="UTF-8"?>
<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>
    <parent>
        <groupId>com.guicedee.services</groupId>
        <artifactId>services-parent</artifactId>
        <version>1.0.2.2-jre8</version>
    </parent>

    
    <artifactId>mssql-jdbc</artifactId>
    <packaging>jar</packaging>

    <name>mssqljdbc</name>

    <description>
        Microsoft JDBC Driver for SQL Server.
    </description>

    <url>https://github.com/Microsoft/mssql-jdbc</url>

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

    <organization>
        <name>Microsoft Corporation</name>
    </organization>

    <developers>
        <developer>
            <organization>Microsoft</organization>
            <organizationUrl>http://www.microsoft.com</organizationUrl>
        </developer>
    </developers>

    <scm>
        <url>https://github.com/Microsoft/mssql-jdbc</url>
    </scm>

    <properties>
        <!-- Allowed values for excluded Groups here - - - - - - - - - - - - -
            xSQLv12 - - - - - - For tests not compatible with SQL Server 2008 R2 - 2014
            xSQLv14 - - - - - - For tests not compatible with SQL Server 2008 R2 - 2017
            xSQLv15 - - - - - - For tests not compatible with SQL Server 2008 R2 - 2019
            xAzureSQLDB - - - - For tests not compatible with Azure SQL Database - -
            xAzureSQLDW - - - - For tests not compatible with Azure Data Warehouse -
            xAzureSQLMI - - - - For tests not compatible with Azure SQL Managed Instance
            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            Default testing enabled with SQL Server 2019 (SQLv14) -->
        <excludeGroups>xSQLv15</excludeGroups>

        <!-- Driver Dependencies -->
        <azure.keyvault.version>1.2.1</azure.keyvault.version>
        <azure.adal4j.version>1.6.4</azure.adal4j.version>
        <rest.client.version>1.6.5</rest.client.version>
        <osgi.core.version>6.0.0</osgi.core.version>
        <osgi.comp.version>5.0.0</osgi.comp.version>
        <!-- JUnit Test Dependencies -->
        <!--<junit.platform.version>[1.3.2, 1.4.2]</junit.platform.version>
        <junit.jupiter.version>5.4.2</junit.jupiter.version>-->
        <hikaricp.version>3.3.1</hikaricp.version>
        <dbcp2.version>2.6.0</dbcp2.version>
        <slf4j.nop.version>1.7.26</slf4j.nop.version>
        <gemini.mock.version>2.1.0.RELEASE</gemini.mock.version>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
        <enforcer.skip>false</enforcer.skip>
    </properties>

    <build>
     <plugins>
         <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-jar-plugin</artifactId>
             <version>${maven.jar.version}</version>
             <configuration>
                 <archive>
                     <manifestEntries>
                         <Multi-Release>true</Multi-Release>
                     </manifestEntries>
                     <manifest>
                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                         <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                     </manifest>
                 </archive>
             </configuration>
         </plugin>

         <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-shade-plugin</artifactId>
             <executions>
                 <execution>
                     <id>shade</id>
                     <phase>package</phase>
                     <goals>
                         <goal>shade</goal>
                     </goals>
                     <configuration>

                         <artifactSet>
                             <includes>
                                 <include>com.microsoft.sqlserver:mssql-jdbc:*</include>
                             </includes>
                         </artifactSet>
                     </configuration>
                 </execution>
             </executions>
         </plugin>

         <plugin>
             <groupId>org.moditect</groupId>
             <artifactId>moditect-maven-plugin</artifactId>
             <executions>
                 <execution>
                     <id>add-module-infos</id>
                     <phase>package</phase>
                     <goals>
                         <goal>add-module-info</goal>
                     </goals>
                     <configuration>
                         <overwriteExistingFiles>true</overwriteExistingFiles>
                         <module>
                             <moduleInfoFile>
                                 moditect/module-info.java
                             </moduleInfoFile>
                         </module>
                     </configuration>
                 </execution>
             </executions>
         </plugin>

     </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.microsoft.sqlserver</groupId>
            <artifactId>mssql-jdbc</artifactId>
            <version>8.1.0.jre11-preview</version>
            <optional>true</optional>
        </dependency>
    </dependencies>

</project>
