<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" 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>
    <parent>
        <groupId>com.jwebmp.jackson</groupId>
        <artifactId>jackson-parent</artifactId>
        <version>0.66.0.1</version>
    </parent>

    <groupId>com.jwebmp.jackson.module</groupId>
    <artifactId>jackson-module-guice</artifactId>
    <name>Jackson module: Guice</name>


    <description>Stuff to make integration with Guice a bit easier</description>
    <url>https://github.com/FasterXML/jackson-modules-base</url>

    <dependencies>
        <!-- Extends Jackson mapper, but also uses types from core, hence direct dep as well -->
        <dependency>
            <groupId>com.jwebmp</groupId>
            <artifactId>javax.inject</artifactId>
            <version>0.66.0.1</version>
            <scope>provided</scope>
            <type>jar</type>
        </dependency>

        <dependency>
            <groupId>com.jwebmp.inject</groupId>
            <artifactId>guice</artifactId>
            <version>0.66.0.1</version>
            <type>jar</type>
        </dependency>

        <dependency>
            <groupId>com.jwebmp.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>

    </dependencies>

    <profiles>
        <profile>
            <id>jdk8</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.moditect</groupId>
                        <artifactId>moditect-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>add-module-infos</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>add-module-info</goal>
                                </goals>
                                <configuration>
                                    <overwriteExistingFiles>true</overwriteExistingFiles>
                                    <module>
                                        <moduleInfoFile>
                                            src/jre11/java/module-info.java
                                        </moduleInfoFile>
                                    </module>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
