<?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.skraper</groupId>
  <artifactId>skraper-parent</artifactId>
  <version>0.8.2</version>
  <packaging>pom</packaging>
  <name>Skraper</name>
  <description>Kotlin/Java library and cli tool for scraping posts and media from various sources with neither authorization nor full page rendering</description>
  <url>https://github.com/sokomishalov/skraper/</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>skrapers</module>
    <module>cli</module>
    <module>telegram-bot</module>
  </modules>
  <scm>
    <connection>scm:git:git://github.com/sokomishalov/skraper.git</connection>
    <developerConnection>scm:git:ssh://github.com/sokomishalov/skraper.git</developerConnection>
    <url>https://github.com/sokomishalov/skraper</url>
  </scm>
  <properties>
    <kotlin.version>1.6.10</kotlin.version>
    <java.version>1.8</java.version>
    <okhttp3.version>4.9.3</okhttp3.version>
    <jsoup.version>1.14.3</jsoup.version>
    <spring.version>5.3.14</spring.version>
    <dokka-plugin.version>1.6.0</dokka-plugin.version>
    <jackson.version>2.13.1</jackson.version>
    <ktor.version>1.6.7</ktor.version>
    <flatten-plugin.version>1.2.7</flatten-plugin.version>
    <kotlinx-coroutines.version>1.5.2</kotlinx-coroutines.version>
    <license-plugin.version>4.1</license-plugin.version>
    <revision>0.8.2</revision>
    <git-commit-id-plugin.version>4.9.10</git-commit-id-plugin.version>
  </properties>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.mycila</groupId>
          <artifactId>license-maven-plugin</artifactId>
          <version>${license-plugin.version}</version>
          <configuration>
            <header>header.txt</header>
            <includes>
              <include>**/*.kt</include>
            </includes>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>${flatten-plugin.version}</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>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.3.1</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>${dokka-plugin.version}</version>
            <executions>
              <execution>
                <phase>pre-site</phase>
                <goals>
                  <goal>dokka</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <dokkaPlugins>
                <plugin>
                  <groupId>org.jetbrains.dokka</groupId>
                  <artifactId>kotlin-as-java-plugin</artifactId>
                  <version>${dokka-plugin.version}</version>
                </plugin>
              </dokkaPlugins>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>3.0.1</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>
            <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>
