<?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>
    <packaging>pom</packaging>
    <modules>
        <module>vertx-jooq-shared</module>
        <module>vertx-jooq-shared-async</module>
        <module>vertx-jooq-classic</module>
        <module>vertx-jooq-classic-jdbc</module>
        <module>vertx-jooq-classic-async</module>
        <module>vertx-jooq-completablefuture</module>
        <module>vertx-jooq-completablefuture-jdbc</module>
        <module>vertx-jooq-completablefuture-async</module>
        <module>vertx-jooq-rx</module>
        <module>vertx-jooq-rx-jdbc</module>
        <module>vertx-jooq-rx-async</module>
        <module>vertx-jooq-generate</module>
        <module>vertx-jooq-classic-reactive</module>
        <module>vertx-jooq-shared-reactive</module>
        <module>vertx-jooq-completablefuture-reactive</module>
        <module>vertx-jooq-rx-reactive</module>
    </modules>
    <properties>
        <jooq.version>3.13.3</jooq.version>
        <vertx.version>3.9.2</vertx.version>
        <hsqldb.version>2.5.0</hsqldb.version>
        <junit.version>4.12</junit.version>
        <guice.version>4.1.0</guice.version>
        <logback.version>1.1.3</logback.version>
        <rx.version>2.1.3</rx.version>
        <mysql.driver.version>8.0.19</mysql.driver.version>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <postgresql.driver.version>42.2.2</postgresql.driver.version>
    </properties>
    <groupId>io.github.jklingsporn</groupId>
    <version>5.2.0</version>
    <artifactId>vertx-jooq</artifactId>
    <name>${project.groupId}:${project.artifactId}</name>
    <description>A jOOQ-CodeGenerator to create vertxified DAOs and POJOs</description>
    <url>https://github.com/jklingsporn/vertx-jooq</url>
    <developers>
        <developer>
            <name>Jens Klingpsorn</name>
            <email>jens.klingsporn@gmail.com</email>
            <organizationUrl>https://github.com/jklingsporn</organizationUrl>
        </developer>
    </developers>
    <licenses>
        <license>
            <name>MIT License</name>
            <url>https://raw.githubusercontent.com/jklingsporn/vertx-jooq/master/LICENSE</url>
        </license>
    </licenses>
    <dependencies>
        <dependency>
            <groupId>io.vertx</groupId>
            <artifactId>vertx-core</artifactId>
            <version>${vertx.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jooq</groupId>
            <artifactId>jooq</artifactId>
            <version>${jooq.version}</version>
        </dependency>
        <!-- Test-scope dependencies-->
        <dependency>
            <groupId>org.hsqldb</groupId>
            <artifactId>hsqldb</artifactId>
            <version>${hsqldb.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql.driver.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
            <version>${guice.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <version>${postgresql.driver.version}</version>
            <scope>test</scope>
        </dependency>

    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <keyname>${gpg.keyname}</keyname>
                            <passphraseServerId>${gpg.keyname}</passphraseServerId>
                            <executable>gpg2</executable>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
    <scm>
        <connection>scm:git:git://github.com/jklingsporn/vertx-jooq.git</connection>
        <developerConnection>scm:git:git@github.com/jklingsporn/vertx-jooq.git</developerConnection>
        <url>https://github.com/jklingsporn/vertx-jooq</url>
    </scm>
    <distributionManagement>
        <repository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
        </repository>
    </distributionManagement>
</project>
