<?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>com.io7m.primogenitor</groupId>
    <artifactId>com.io7m.primogenitor.full</artifactId>
    <version>8.2.0</version>
  </parent>

  <groupId>com.io7m.stmp</groupId>
  <artifactId>string-template-maven-plugin</artifactId>
  <packaging>maven-plugin</packaging>
  <version>2.0.0</version>

  <name>string-template-maven-plugin</name>
  <description>String Template Maven plugin.</description>
  <url>https://www.io7m.com/software/string-template-maven-plugin</url>

  <prerequisites>
    <maven>3.8.3</maven>
  </prerequisites>

  <properties>
    <!-- Configuration. -->
    <io7m.api.previousVersion>1.2.1</io7m.api.previousVersion>
    <io7m.java.targetJavaVersion>21</io7m.java.targetJavaVersion>
    <enforcer.skip>true</enforcer.skip>
    <checkstyle.skip>true</checkstyle.skip>
  </properties>

  <organization>
    <name>The WebGuys</name>
  </organization>

  <inceptionYear>2011</inceptionYear>

  <scm>
    <connection>scm:git:https://www.github.com/io7m-com/string-template-maven-plugin.git</connection>
    <developerConnection>scm:git:https://www.github.com/io7m-com/string-template-maven-plugin.git</developerConnection>
    <url>https://www.github.com/io7m-com/string-template-maven-plugin</url>
  </scm>

  <issueManagement>
    <url>https://www.github.com/io7m-com/string-template-maven-plugin/issues</url>
    <system>github</system>
  </issueManagement>

  <licenses>
    <license>
      <name>MIT</name>
      <url>https://raw.githubusercontent.com/io7m-com/string-template-maven-plugin/develop/README-LICENSE.txt</url>
    </license>
  </licenses>

  <developers>
    <developer>
      <id>kmb</id>
      <name>Kevin Birch</name>
      <email>kmb@pobox.com</email>
      <roles>
        <role>architect</role>
        <role>developer</role>
      </roles>
    </developer>
  </developers>

  <contributors>
    <contributor>
      <name>Rob Wicke</name>
      <url>https://github.com/rwicke</url>
    </contributor>
  </contributors>

  <dependencies>
    <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>ST4</artifactId>
      <version>4.3.4</version>
    </dependency>

    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-plugin-api</artifactId>
      <version>3.9.6</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.maven.plugin-tools</groupId>
      <artifactId>maven-plugin-annotations</artifactId>
      <version>3.13.0</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>3.13.0</version>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <executions>
          <execution>
            <id>default-descriptor</id>
            <phase>process-classes</phase>
            <goals>
              <goal>descriptor</goal>
            </goals>
            <configuration>
              <goalPrefix>string-template</goalPrefix>
            </configuration>
          </execution>
          <execution>
            <id>generate-helpmojo</id>
            <goals>
              <goal>helpmojo</goal>
            </goals>
            <configuration>
              <helpPackageName>com.webguys.maven.plugin.st</helpPackageName>
              <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!-- Generate a site -->
      <plugin>
        <groupId>com.io7m.minisite</groupId>
        <artifactId>com.io7m.minisite.maven_plugin</artifactId>
        <inherited>false</inherited>
      </plugin>
    </plugins>
  </build>
</project>