<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.noear</groupId>
  <artifactId>luffy-parent</artifactId>
  <version>1.4.2</version>
  <packaging>pom</packaging>
  <name>luffy-parent</name>
  <description>Java project for luffy</description>
  <url>https://github.com/noear/luffy</url>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>noear</name>
      <email>noear@live.cn</email>
      <organization>noear.org</organization>
      <organizationUrl>http://www.noear.org</organizationUrl>
    </developer>
  </developers>
  <modules>
    <module>../luffy.base</module>
    <module>../luffy</module>
    <module>../luffy.executor.s.python</module>
    <module>../luffy.executor.s.ruby</module>
    <module>../luffy.executor.s.javascript</module>
    <module>../luffy.executor.s.groovy</module>
    <module>../luffy.executor.s.lua</module>
    <module>../luffy.executor.s.graaljs</module>
    <module>../luffy.executor.s.nashorn</module>
    <module>../luffy.executor.m.freemarker</module>
    <module>../luffy.executor.m.velocity</module>
    <module>../luffy.executor.m.thymeleaf</module>
    <module>../luffy.executor.m.beetl</module>
    <module>../luffy.executor.m.bsql</module>
    <module>../luffy.executor.m.enjoy</module>
    <module>../luffy.event.message</module>
    <module>../luffy.event.schedule</module>
    <module>../luffy.lock.redis</module>
    <module>../luffy.queue.redis</module>
    <module>../custom/luffy.cap.extend.flexmark</module>
    <module>../custom/luffy.cap.extend.jsoup</module>
    <module>../custom/luffy.cap.extend.hanlp</module>
    <module>../custom/luffy.cap.extend.diff</module>
    <module>../custom/luffy.cap.extend.excel</module>
  </modules>
  <scm>
    <connection>scm:git:git@github.com:noear/luffy.git</connection>
    <developerConnection>scm:git:git@github.com:noear/luffy.git</developerConnection>
    <url>https://github.com/noear/luffy</url>
  </scm>
  <properties>
    <java.version>1.8</java.version>
    <okldap.ver>1.1.3</okldap.ver>
    <solon.ver>1.11.5</solon.ver>
    <okhttp.ver>3.14.9</okhttp.ver>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <wood.ver>1.0.7</wood.ver>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <revision>1.4.2</revision>
    <flexmark.version>0.34.48</flexmark.version>
    <redisx.ver>1.4.4</redisx.ver>
    <snack3.ver>3.2.50</snack3.ver>
    <mongox.ver>1.0.0</mongox.ver>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon</artifactId>
        <version>${solon.ver}</version>
      </dependency>
      <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon-test</artifactId>
        <version>${solon.ver}</version>
      </dependency>
      <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon.config.yaml</artifactId>
        <version>${solon.ver}</version>
      </dependency>
      <dependency>
        <groupId>org.noear</groupId>
        <artifactId>luffy.base</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>org.noear</groupId>
        <artifactId>wood</artifactId>
        <version>${wood.ver}</version>
      </dependency>
      <dependency>
        <groupId>org.noear</groupId>
        <artifactId>snack3</artifactId>
        <version>${snack3.ver}</version>
      </dependency>
      <dependency>
        <groupId>org.noear</groupId>
        <artifactId>mongox</artifactId>
        <version>${mongox.ver}</version>
      </dependency>
      <dependency>
        <groupId>org.noear</groupId>
        <artifactId>redisx</artifactId>
        <version>${redisx.ver}</version>
      </dependency>
      <dependency>
        <groupId>com.squareup.okhttp3</groupId>
        <artifactId>okhttp</artifactId>
        <version>${okhttp.ver}</version>
      </dependency>
      <dependency>
        <groupId>net.coobird</groupId>
        <artifactId>thumbnailator</artifactId>
        <version>0.4.14</version>
      </dependency>
      <dependency>
        <groupId>com.zaxxer</groupId>
        <artifactId>HikariCP</artifactId>
        <version>4.0.3</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <compilerArgument>-parameters</compilerArgument>
          <source>1.8</source>
          <target>1.8</target>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>3.3.0</version>
        <configuration>
          <finalName>${project.artifactId}</finalName>
          <appendAssemblyId>false</appendAssemblyId>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.2.7</version>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>process-resources</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.0.1</version>
            <executions>
              <execution>
                <phase>compile</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <attach>true</attach>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.10.3</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <additionalparam>-Xdoclint:none</additionalparam>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.8</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>oss</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <distributionManagement>
        <repository>
          <id>oss</id>
          <name>snapshots</name>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
          <id>oss</id>
          <name>releases</name>
          <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
    <profile>
      <id>internal</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.0.1</version>
            <executions>
              <execution>
                <phase>compile</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <attach>true</attach>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.10.3</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <additionalparam>-Xdoclint:none</additionalparam>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <distributionManagement>
        <repository>
          <id>nexus-internal</id>
          <name>snapshots</name>
          <url>http://maven.digital.js/repository/maven-releases/</url>
        </repository>
        <snapshotRepository>
          <id>nexus-internal</id>
          <name>releases</name>
          <url>http://maven.digital.js/repository/maven-snapshots/</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
  </profiles>
</project>
