<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://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>ru.sokomishalov.commons</groupId>
  <artifactId>commons-parent</artifactId>
  <version>1.2.1</version>
  <packaging>pom</packaging>
  <name>Kotlin/JVM extra extensions</name>
  <description>Bunch of common extensions for Kotlin/JVM</description>
  <url>https://github.com/sokomishalov/commons-kotlin-jvm/</url>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>https://choosealicense.com/licenses/apache-2.0/</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Mikhael Sokolov</name>
      <email>sokomishalov@mail.ru</email>
      <url>https://sokomishalov.github.io/about-me</url>
      <organization>ru.sokomishalov</organization>
    </developer>
  </developers>
  <modules>
    <module>commons-core</module>
    <module>commons-logging</module>
    <module>commons-serialization</module>
    <module>commons-coroutines</module>
    <module>commons-spring</module>
  </modules>
  <scm>
    <connection>scm:git:git://github.com/sokomishalov/commons-kotlin-jvm.git</connection>
    <developerConnection>scm:git:ssh://github.com/sokomishalov/commons-kotlin-jvm.git</developerConnection>
    <url>https://github.com/sokomishalov/commons-kotlin-jvm</url>
  </scm>
  <properties>
    <kotlin.version>1.4.30</kotlin.version>
    <springfox.version>3.0.0</springfox.version>
    <spring.boot.version>2.4.2</spring.boot.version>
    <jackson.version>2.12.1</jackson.version>
    <kotlinx-coroutines.version>1.4.2</kotlinx-coroutines.version>
    <slf4j.version>1.7.30</slf4j.version>
    <logback.version>1.2.3</logback.version>
    <java.version>1.8</java.version>
    <reactor.version>3.4.2</reactor.version>
    <spring.version>5.3.3</spring.version>
    <dokka-plugin.version>1.4.10.2</dokka-plugin.version>
    <javax-servlet-api.version>4.0.1</javax-servlet-api.version>
    <revision>1.2.1</revision>
  </properties>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.mycila</groupId>
          <artifactId>license-maven-plugin</artifactId>
          <version>3.0</version>
          <configuration>
            <header>header.txt</header>
            <includes>
              <include>**/*.kt</include>
              <include>**/*.java</include>
            </includes>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <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>jitpack</id>
      <repositories>
        <repository>
          <id>jitpack.io</id>
          <url>https://jitpack.io</url>
        </repository>
      </repositories>
    </profile>
    <profile>
      <id>ossrh</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.2.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.2.0</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.jetbrains.dokka</groupId>
            <artifactId>dokka-maven-plugin</artifactId>
            <version>1.4.10.2</version>
            <executions>
              <execution>
                <phase>pre-site</phase>
                <goals>
                  <goal>dokka</goal>
                </goals>
                <configuration>
                  <dokkaPlugins>
                    <plugin>
                      <groupId>org.jetbrains.dokka</groupId>
                      <artifactId>kotlin-as-java-plugin</artifactId>
                      <version>1.4.10.2</version>
                    </plugin>
                  </dokkaPlugins>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <dokkaPlugins>
                <plugin>
                  <groupId>org.jetbrains.dokka</groupId>
                  <artifactId>kotlin-as-java-plugin</artifactId>
                  <version>1.4.10.2</version>
                </plugin>
              </dokkaPlugins>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.8</version>
            <extensions>true</extensions>
            <executions>
              <execution>
                <id>injected-nexus-deploy</id>
                <phase>deploy</phase>
                <goals>
                  <goal>deploy</goal>
                </goals>
                <configuration>
                  <serverId>ossrh</serverId>
                  <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                  <autoReleaseAfterClose>true</autoReleaseAfterClose>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <distributionManagement>
        <repository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
      </distributionManagement>
      <pluginRepositories>
        <pluginRepository>
          <id>jcenter</id>
          <name>JCenter</name>
          <url>https://jcenter.bintray.com/</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
</project>
