<?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>io.github.evis</groupId>
  <artifactId>scalafix-maven-plugin_2.12</artifactId>
  <version>0.1.4_${scalafix.version}</version>
  <packaging>maven-plugin</packaging>
  <name>scalafix-maven-plugin</name>
  <description>scalafix-maven-plugin enables automatic refactoring and linting of Maven projects written in Scala using
        Scalafix.</description>
  <url>https://github.com/evis/scalafix-maven-plugin</url>
  <licenses>
    <license>
      <name>BSD-3-Clause</name>
      <url>https://opensource.org/licenses/BSD-3-Clause</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Evgeny Veretennikov</name>
      <email>evg.veretennikov@gmail.com</email>
      <url>https://github.com/evis</url>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git://github.com/evis/scalafix-maven-plugin.git</connection>
    <developerConnection>scm:git:ssh://github.com:evis/scalafix-maven-plugin.git</developerConnection>
    <url>http://github.com/evis/scalafix-maven-plugin/tree/master</url>
  </scm>
  <properties>
    <nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
    <scalafmt.version>1.5.1</scalafmt.version>
    <java.version>8</java.version>
    <maven-source-plugin.version>3.1.0</maven-source-plugin.version>
    <scalafix.version>0.9.31</scalafix.version>
    <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
    <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
    <scala-maven-plugin.version>4.4.0</scala-maven-plugin.version>
    <scala.patch.version>15</scala.patch.version>
    <maven-plugin.version>3.6.0</maven-plugin.version>
    <maven-javadoc-plugin.version>3.1.0</maven-javadoc-plugin.version>
    <scalatest.version>3.0.8</scalatest.version>
    <mvn-scalafmt.version>0.11</mvn-scalafmt.version>
    <scala.major.version>2.12</scala.major.version>
    <scala.version>${scala.major.version}.${scala.patch.version}</scala.version>
    <scalatest-maven-plugin.version>2.0.0</scalatest-maven-plugin.version>
    <semanticdb.version>4.4.29</semanticdb.version>
    <scala-cross-maven-plugin.version>0.3.0</scala-cross-maven-plugin.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-plugin-api</artifactId>
      <version>${maven-plugin.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.plugin-tools</groupId>
      <artifactId>maven-plugin-annotations</artifactId>
      <version>${maven-plugin.version}</version>
    </dependency>
    <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-library</artifactId>
      <version>${scala.version}</version>
    </dependency>
    <dependency>
      <groupId>ch.epfl.scala</groupId>
      <artifactId>scalafix-interfaces</artifactId>
      <version>${scalafix.version}</version>
    </dependency>
    <dependency>
      <groupId>ch.epfl.scala</groupId>
      <artifactId>scalafix-cli_${scala.version}</artifactId>
      <version>${scalafix.version}</version>
    </dependency>
    <dependency>
      <groupId>org.scalatest</groupId>
      <artifactId>scalatest_2.12</artifactId>
      <version>${scalatest.version}</version>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>src/main/scala</sourceDirectory>
    <testSourceDirectory>src/test/scala</testSourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.spurint.maven.plugins</groupId>
        <artifactId>scala-cross-maven-plugin</artifactId>
        <version>${scala-cross-maven-plugin.version}</version>
        <executions>
          <execution>
            <id>rewrite-pom</id>
            <goals>
              <goal>rewrite-pom</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>${maven-compiler-plugin.version}</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>net.alchim31.maven</groupId>
        <artifactId>scala-maven-plugin</artifactId>
        <version>${scala-maven-plugin.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <args>
            <arg>-target:jvm-1.8</arg>
            <arg>-Ywarn-unused</arg>
          </args>
          <compilerPlugins>
            <compilerPlugin>
              <groupId>org.scalameta</groupId>
              <artifactId>semanticdb-scalac_${scala.version}</artifactId>
              <version>${semanticdb.version}</version>
            </compilerPlugin>
          </compilerPlugins>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>${maven-plugin.version}</version>
        <configuration>
          <goalPrefix>scalafix</goalPrefix>
          <mojoDependencies>
            <param>${groupId}:${artifactId}</param>
          </mojoDependencies>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>${maven-source-plugin.version}</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>${maven-javadoc-plugin.version}</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>${maven-gpg-plugin.version}</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>${nexus-staging-maven-plugin.version}</version>
        <extensions>true</extensions>
        <configuration>
          <serverId>ossrh</serverId>
          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.scalatest</groupId>
        <artifactId>scalatest-maven-plugin</artifactId>
        <version>${scalatest-maven-plugin.version}</version>
        <executions>
          <execution>
            <id>test</id>
            <goals>
              <goal>test</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
          <junitxml>.</junitxml>
          <filereports>WDF TestSuite.txt</filereports>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.antipathy</groupId>
        <artifactId>mvn-scalafmt_2.12</artifactId>
        <version>${mvn-scalafmt.version}_${scalafmt.version}</version>
      </plugin>
      <plugin>
        <groupId>io.github.evis</groupId>
        <artifactId>scalafix-maven-plugin</artifactId>
        <version>${version}</version>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>scala-2.11</id>
      <properties>
        <scala.patch.version>12</scala.patch.version>
        <scala.major.version>2.11</scala.major.version>
      </properties>
    </profile>
    <profile>
      <id>scala-2.12</id>
      <properties>
        <scala.patch.version>15</scala.patch.version>
        <scala.major.version>2.12</scala.major.version>
      </properties>
    </profile>
    <profile>
      <id>scala-2.13</id>
      <properties>
        <scala.patch.version>6</scala.patch.version>
        <scala.major.version>2.13</scala.major.version>
      </properties>
    </profile>
  </profiles>
</project>
