<?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>
  <parent>
    <groupId>io.avaje</groupId>
    <artifactId>avaje-jsonb-parent</artifactId>
    <version>1.2</version>
  </parent>

  <artifactId>avaje-jsonb</artifactId>
  <version>1.2</version>
  <name>jsonb</name>

  <dependencies>

    <!-- hmmm, maybe make provided or extract into separate module -->
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-core</artifactId>
      <version>2.14.0</version>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>io.avaje</groupId>
      <artifactId>avaje-inject</artifactId>
      <version>8.12</version>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>io.avaje</groupId>
      <artifactId>junit</artifactId>
      <version>1.1</version>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <build>
    <plugins>
<!--      <plugin>-->
<!--        <artifactId>maven-surefire-plugin</artifactId>-->
<!--        <version>3.0.0-M4</version>-->
<!--        <configuration>-->
<!--          <argLine>-->
<!--            &#45;&#45;add-modules com.fasterxml.jackson.core-->
<!--            &#45;&#45;add-opens io.avaje.jsonb/io.avaje.jsonb.core=ALL-UNNAMED-->
<!--            &#45;&#45;add-opens io.avaje.jsonb/org.example=ALL-UNNAMED-->
<!--            &#45;&#45;add-opens com.fasterxml.jackson.core/com.fasterxml.jackson.core.io=ALL-UNNAMED-->
<!--          </argLine>-->
<!--        </configuration>-->
<!--      </plugin>-->

      <plugin>
        <groupId>org.moditect</groupId>
        <artifactId>moditect-maven-plugin</artifactId>
        <version>1.0.0.RC1</version>
        <executions>
          <execution>
            <id>add-module-infos</id>
            <phase>package</phase>
            <goals>
              <goal>add-module-info</goal>
            </goals>
            <configuration>
              <overwriteExistingFiles>true</overwriteExistingFiles>
              <module>
                <moduleInfoFile>src/main/java9/module-info.java</moduleInfoFile>
              </module>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
