<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.geoserver</groupId>
    <artifactId>community</artifactId>
    <version>C105.2.21.4.05</version>
  </parent>
  <groupId>org.geoserver.community</groupId>
  <artifactId>gs-jdbcconfig</artifactId>
  <packaging>jar</packaging>
  <name>GeoServer JDBC Catalog</name>
  <description>Manage GeoServer Catalog configuration in a database.</description>
  <properties>
    <jdbcconfig.postgres.skip>true</jdbcconfig.postgres.skip>
    <jdbcconfig.oracle.skip>true</jdbcconfig.oracle.skip>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.geoserver</groupId>
      <artifactId>gs-main</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.geoserver.web</groupId>
      <artifactId>gs-web-core</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jdbc</artifactId>
    </dependency>
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
      <scope>provided</scope>
    </dependency>

    <!-- Google common libraries, featuring great utility classes for collections, io, concurrency, and more -->
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
    </dependency>
    <dependency>
      <groupId>com.google.code.findbugs</groupId>
      <artifactId>jsr305</artifactId>
    </dependency>
    <dependency>
      <groupId>commons-dbcp</groupId>
      <artifactId>commons-dbcp</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
    </dependency>

    <!-- Testing -->
    <dependency>
      <groupId>org.geoserver</groupId>
      <artifactId>gs-main</artifactId>
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.geoserver</groupId>
      <artifactId>gs-wms</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymock</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib-nodep</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.oracle.database.jdbc</groupId>
      <artifactId>ojdbc8</artifactId>
      <scope>test</scope>
    </dependency>

  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <systemPropertyVariables>
            <jdbcconfig.postgres.skip>${jdbcconfig.postgres.skip}</jdbcconfig.postgres.skip>
          </systemPropertyVariables>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <!--  by default, skip oracle tests but allow to be enabled. -->
      <id>oracle</id>
      <properties>
        <jdbcconfig.oracle.skip>false</jdbcconfig.oracle.skip>
      </properties>
    </profile>
    <profile>
      <!-- by default, skip postgres tests but allow to be enabled. -->
      <id>postgres</id>
      <properties>
        <jdbcconfig.postgres.skip>false</jdbcconfig.postgres.skip>
      </properties>
    </profile>
  </profiles>
</project>
