<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>
    <artifactId>rocker</artifactId>
    <packaging>pom</packaging>
    <version>2.2.1</version>

    <parent>
        <groupId>com.fizzed</groupId>
        <artifactId>maven-parent</artifactId>
        <version>2.7.0</version>
    </parent>
    
    <scm>
        <url>https://github.com/fizzed/rocker</url>
        <connection>scm:git:git@github.com:fizzed/rocker.git</connection>
      <tag>v2.2.1</tag>
  </scm>
    
    <properties>
        <main.java.package />
        <slf4j.version>1.7.36</slf4j.version>
        <antlr.version>4.5.3</antlr.version>
        <java.version>1.8</java.version>
        <license.skip>true</license.skip>
        <!-- netbeans specific -->
        <netbeans.compile.on.save>false</netbeans.compile.on.save>
        <!-- workaround travis ci maven version requirement -->
        <maven.enforce.version>3.2.5</maven.enforce.version>
    </properties>

    <modules>
        <module>rocker-runtime</module>
        <module>rocker-compiler</module>
        <module>rocker-maven-plugin</module>
        <module>rocker-gradle-plugin</module>
        <module>rocker-test-template</module>
        <module>rocker-test-reload</module>
        <module>rocker-bom</module>
    </modules>
    
    <dependencyManagement>
        <dependencies>

            <!-- compile -->
            
            <dependency>
                <groupId>com.fizzed</groupId>
                <artifactId>rocker-runtime</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fizzed</groupId>
                <artifactId>rocker-compiler</artifactId>
                <version>${project.version}</version>
            </dependency>
            
            <dependency>
                <groupId>com.fizzed</groupId>
                <artifactId>rocker-maven-plugin</artifactId>
                <version>${project.version}</version>
            </dependency>
            
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>3.17.0</version>
            </dependency>
            
            <!-- an optional dependency that's used for html escaping but only
               if its on the classpath.  its super quick and worth it -->
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>19.0</version>
            </dependency>
            
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            
            <dependency>
                <groupId>org.antlr</groupId>
                <artifactId>antlr4-runtime</artifactId>
                <version>${antlr.version}</version>
            </dependency>
            
            <!-- test -->
            
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.13.1</version>
                <scope>test</scope>
            </dependency>
            
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>2.16.1</version>
                <scope>test</scope>
            </dependency>
            
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-all</artifactId>
                <version>4.0.25.Final</version>
                <scope>test</scope>
            </dependency>
            
            <dependency>
                <groupId>io.undertow</groupId>
                <artifactId>undertow-core</artifactId>
                <version>2.2.36.Final</version>
                <scope>test</scope>
            </dependency>
            
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>2.12.7</version>
                <scope>test</scope>
            </dependency>
            
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>log4j-over-slf4j</artifactId>
                <version>${slf4j.version}</version>
                <scope>test</scope>
            </dependency>
            
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl-over-slf4j</artifactId>
                <version>${slf4j.version}</version>
                <scope>test</scope>
            </dependency>
            
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>1.2.13</version>
                <scope>test</scope>
            </dependency>

        </dependencies>
    </dependencyManagement>
    <!-- things to do if running on JDK 17 -->
    <profiles>
        <profile>
            <id>java17-settings</id>
            <activation>
                <jdk>[17,)</jdk>
            </activation>
            <properties>
                <javadoc.opts>-Xdoclint:none</javadoc.opts>
            </properties>
            <modules>
                <module>rocker-runtime</module>
                <module>rocker-compiler</module>
                <module>rocker-maven-plugin</module>
                <module>rocker-gradle-plugin</module>
                <module>rocker-test-template</module>
                <module>rocker-test-template17</module>
                <module>rocker-test-reload</module>
                <module>rocker-bom</module>
            </modules>
        </profile>
    </profiles>
    
</project>
