<?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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>jdbcx</artifactId>
    <groupId>io.github.jdbcx</groupId>
    <version>0.1.1</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>jdbcx-driver</artifactId>
  <name>jdbcx-driver</name>
  <description>JDBCX driver</description>
  <url>https://github.com/jdbcx/jdbcx/tree/main/driver</url>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <id>shade</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedArtifactAttached>false</shadedArtifactAttached>
              <createDependencyReducedPom>true</createDependencyReducedPom>
              <createSourcesJar>true</createSourcesJar>
              <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
              <artifactSet>
                <includes>
                  <include>io.github.jdbcx:jdbcx-core</include>
                </includes>
              </artifactSet>
              <transformers>
                <transformer />
                <transformer />
                <transformer />
                <transformer>
                  <manifestEntries>
                    <Automatic-Module-Name>${project.groupId}.driver</Automatic-Module-Name>
                    <Main-Class>${mainClass}</Main-Class>
                    <Specification-Title>${spec.title}</Specification-Title>
                    <Specification-Version>${spec.version}</Specification-Version>
                  </manifestEntries>
                </transformer>
              </transformers>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>**/module-info.class</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <properties>
    <spec.version>4.2</spec.version>
    <imageName>jdbcx-driver-bin</imageName>
    <spec.title>JDBC</spec.title>
    <mainClass>io.github.jdbcx.Main</mainClass>
  </properties>
</project>
