<?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>
  <parent>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-build</artifactId>
    <version>0.3.4</version>
  </parent>
  <artifactId>microsphere-build-example</artifactId>
  <version>0.3.4</version>
  <name>Microsphere :: Build :: Example</name>
  <description>Microsphere Build Example Project - validates profiles and Maven plugins</description>
  <url>https://github.com/microsphere-projects/microsphere-build/microsphere-build-example</url>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>mercyblitz</id>
      <name>Mercy Ma</name>
      <email>mercyblitz@gmail.com</email>
      <organization>Microsphere</organization>
      <roles>
        <role>lead</role>
        <role>architect</role>
        <role>developer</role>
      </roles>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git@github.com:microsphere-projects/microsphere-build.git/microsphere-build-example/microsphere-build-example</connection>
    <developerConnection>scm:git:git@github.com:microsphere-projects/microsphere-build.git/microsphere-build-example/microsphere-build-example</developerConnection>
    <url>git@github.com:microsphere-projects/microsphere-build.git/microsphere-build-example</url>
  </scm>
  <properties>
    <junit.version>6.1.0</junit.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>5.14.3</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <profiles>
    <profile>
      <id>docs</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.asciidoctor</groupId>
            <artifactId>asciidoctor-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>asciidoc-to-html</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>process-asciidoc</goal>
                </goals>
                <configuration>
                  <sourceDirectory>${project.basedir}/src/docs/asciidoc</sourceDirectory>
                  <outputDirectory>${project.build.directory}/docs</outputDirectory>
                  <backend>html5</backend>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>java8-16</id>
      <activation>
        <jdk>[1.8,17)</jdk>
      </activation>
      <properties>
        <junit.version>5.14.3</junit.version>
      </properties>
    </profile>
  </profiles>
</project>
