<?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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.umlg</groupId>
        <artifactId>sqlg-postgres-parent</artifactId>
        <version>3.1.5</version>
    </parent>
    <artifactId>sqlg-postgres</artifactId>
    <name>sqlg :: postgres</name>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <argLine>
                        --add-opens=java.base/java.io=ALL-UNNAMED
                        --add-opens=java.base/java.time=ALL-UNNAMED
                        --add-opens=java.base/java.time.zone=ALL-UNNAMED
                        --add-opens=java.base/java.lang=ALL-UNNAMED
                        --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
                        -Xmx8192m -XX:+UseCompressedOops
                        -Dbuild.dir=${project.build.directory}
                    </argLine>
                </configuration>
            </plugin>
            <!-- this uber jar is in the wrong place, as it need c3pO to be included to work -->
<!--            <plugin>-->
<!--                <groupId>org.apache.maven.plugins</groupId>-->
<!--                <artifactId>maven-shade-plugin</artifactId>-->
<!--                <version>3.6.0</version>-->
<!--                <executions>-->
<!--                    <execution>-->
<!--                        <phase>package</phase>-->
<!--                        <goals>-->
<!--                            <goal>shade</goal>-->
<!--                        </goals>-->
<!--                        <configuration>-->
<!--                            <finalName>sqlg-c3pO-postgresql-uber</finalName>-->
<!--                            <createDependencyReducedPom>false</createDependencyReducedPom>-->
<!--&lt;!&ndash;                            <artifactSet>&ndash;&gt;-->
<!--&lt;!&ndash;                                <excludes>&ndash;&gt;-->
<!--&lt;!&ndash;                                    <exclude>classworlds:classworlds</exclude>&ndash;&gt;-->
<!--&lt;!&ndash;                                    <exclude>junit:junit</exclude>&ndash;&gt;-->
<!--&lt;!&ndash;                                    <exclude>jmock:*</exclude>&ndash;&gt;-->
<!--&lt;!&ndash;                                    <exclude>*:xml-apis</exclude>&ndash;&gt;-->
<!--&lt;!&ndash;                                    <exclude>org.apache.maven:lib:tests</exclude>&ndash;&gt;-->
<!--&lt;!&ndash;                                    <exclude>log4j:log4j:jar:</exclude>&ndash;&gt;-->
<!--&lt;!&ndash;                                </excludes>&ndash;&gt;-->
<!--&lt;!&ndash;                            </artifactSet>&ndash;&gt;-->
<!--                        </configuration>-->
<!--                    </execution>-->
<!--                </executions>-->
<!--            </plugin>-->
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.umlg</groupId>
            <artifactId>sqlg-postgres-dialect</artifactId>
        </dependency>
        <dependency>
            <groupId>org.umlg</groupId>
            <artifactId>sqlg-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.umlg</groupId>
            <artifactId>sqlg-c3p0</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
