<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2015 Red Hat, Inc. and/or its affiliates.
  ~
  ~ Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
  -->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         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>

  <groupId>org.wildfly.swarm.docs</groupId>
  <artifactId>docs</artifactId>

  <parent>
    <groupId>org.wildfly.swarm</groupId>
    <artifactId>build-parent</artifactId>
    <version>7.0.0</version>
    <relativePath>../build-parent/pom.xml</relativePath>
  </parent>

  <name>WildFly Swarm Documentation</name>
  <description>WildFly Swarm Documentation</description>

  <packaging>pom</packaging>

  <properties>
    <maven.min.version>3.3.3</maven.min.version>

    <maven.compiler.target>1.8</maven.compiler.target>
    <maven.compiler.source>1.8</maven.compiler.source>

    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <swarm.product.build>false</swarm.product.build>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.asciidoctor</groupId>
        <artifactId>asciidoctor-maven-plugin</artifactId>
        <version>1.5.5</version>
        <inherited>false</inherited>
        <configuration>
          <attributes>
            <version>${project.version}</version>
            <product>${swarm.product.build}</product>
          </attributes>
          <sourceDirectory>.</sourceDirectory>
          <sourceDocumentName>index.adoc</sourceDocumentName>
          <doctype>book</doctype>
          <backend>html</backend>
          <preserveDirectories>true</preserveDirectories>
          <resources>
            <resource>
              <directory>.</directory>
              <excludes>
                <exclude>**/*</exclude>
              </excludes>
            </resource>
          </resources>
        </configuration>
        <executions>
          <execution>
            <id>output-html</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>process-asciidoc</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>boms-unsupported</id>
      <dependencies>
        <dependency>
          <groupId>org.wildfly.swarm</groupId>
          <artifactId>bom-all</artifactId>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>boms-product</id>
      <dependencies>
        <dependency>
          <groupId>org.wildfly.swarm</groupId>
          <artifactId>bom</artifactId>
        </dependency>
      </dependencies>
    </profile>
  </profiles>

  <modules>
    <module>reference</module>
    <module>howto/use-a-bom</module>
    <module>howto/create-an-uberjar</module>
    <module>howto/create-a-hollow-jar</module>
    <module>howto/autodetect-fractions</module>
    <module>howto/explicit-fractions</module>
    <module>howto/create-a-datasource</module>
    <module>howto/create-a-fraction</module>
    <module>howto/test-in-container</module>
  </modules>

</project>
