<?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>pgjdbc-core-prevjre</artifactId>
    <groupId>org.postgresql</groupId>
    <version>1.1.5</version>
    <relativePath>pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>postgresql</artifactId>
  <packaging>bundle</packaging>
  <name>PostgreSQL JDBC Driver - JDBC 4.1</name>
  <version>42.2.8.jre7</version>
  <description>Java JDBC 4.1 (JRE 7+) driver for PostgreSQL database</description>
  <scm>
    <connection>scm:git:https://github.com/pgjdbc/pgjdbc-jre7.git</connection>
    <developerConnection>scm:git:git@github.com:pgjdbc/pgjdbc-jre7.git</developerConnection>
    <tag>REL42.2.8.jre7</tag>
    <url>https://github.com/pgjdbc/pgjdbc-jre7</url>
  </scm>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <executions>
            <execution>
              <id>remove-future-jre-sources</id>
              <configuration>
                <filesets>
                  <fileset>
                    <directory>${postgresql.preprocessed.sources.directory}</directory>
                    <includes>
                      <include>**/jre8/</include>
                      <include>**/jdbc42/</include>
                    </includes>
                    <followSymlinks>false</followSymlinks>
                  </fileset>
                </filesets>
              </configuration>
            </execution>
            <execution>
              <id>remove-future-jre-test-sources</id>
              <configuration>
                <filesets>
                  <fileset>
                    <directory>${postgresql.preprocessed.test.sources.directory}</directory>
                    <includes>
                      <include>**/jre8/</include>
                      <include>**/jdbc42/</include>
                    </includes>
                    <followSymlinks>false</followSymlinks>
                  </fileset>
                </filesets>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <relocation>
                  <pattern>com.ongres</pattern>
                  <shadedPattern>org.postgresql.shaded.com.ongres</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <minimizeJar>true</minimizeJar>
          <filters>
            <filter>
              <artifact>com.ongres.scram:client</artifact>
              <includes>
                <include>**</include>
              </includes>
            </filter>
            <filter>
              <artifact>com.github.waffle:waffle-jna</artifact>
              <excludes>
                <exclude>**</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>org.slf4j:jcl-over-slf4j</artifact>
              <excludes>
                <exclude>**</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>com/sun/jna/**</exclude>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.7</version>
            <executions>
              <execution>
                <id>create-unzipjdkant.xml</id>
                <phase>generate-sources</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target>
                    <echo />
                    <echoxml>
                      <project>
                        <unzip>
                          <patternset>
                            <include />
                            <include />
                            <include />
                            <include />
                            <include />
                            <include />
                            <include />
                          </patternset>
                        </unzip>
                      </project>
                    </echoxml>
                    <replace />
                  </target>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>se.jiderhamn</groupId>
      <artifactId>classloader-leak-test-framework</artifactId>
      <version>1.1.1</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>bcel</artifactId>
          <groupId>org.apache.bcel</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.enterprise</artifactId>
      <version>4.2.0</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.core</artifactId>
      <version>4.3.1</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
  </dependencies>
  <properties>
    <jdbc.specification.version>4.1</jdbc.specification.version>
    <postgresql.enforce.jdk.version>[1.7,1.8)</postgresql.enforce.jdk.version>
    <skip.unzip-jdk-src>false</skip.unzip-jdk-src>
    <skip.assembly>false</skip.assembly>
    <jdbc.specification.version.nodot>41</jdbc.specification.version.nodot>
    <javac.target>1.7</javac.target>
  </properties>
</project>

