<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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.quicksign</groupId>
    <artifactId>kafka-encryption-parent</artifactId>
    <version>0.1.4</version>
  </parent>
  <artifactId>kafka-encryption-doc</artifactId>
  <version>0.1.4</version>
  <properties>
    <asciidoctorj.version>1.5.6</asciidoctorj.version>
    <jruby.version>1.7.26</jruby.version>
    <asciidoctor.maven.plugin.version>1.5.6</asciidoctor.maven.plugin.version>
  </properties>
  <build>
    <directory>${basedir}/../target</directory>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.asciidoctor</groupId>
          <artifactId>asciidoctor-maven-plugin</artifactId>
          <version>${asciidoctor.maven.plugin.version}</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <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>
              <backend>html5</backend>
              <sourceHighlighter>coderay</sourceHighlighter>
              <attributes>
                <imagesdir>.</imagesdir>
                <toc>left</toc>
                <toclevels>4</toclevels>
                <icons>font</icons>
                <sectanchors>true</sectanchors>
                <idprefix />
                <idseparator>-</idseparator>
                <docinfo1>true</docinfo1>
              </attributes>
              <resources>
                <resource>
                  <directory>${basedir}/..</directory>
                  <targetPath>${project.build.directory}/generated-docs/</targetPath>
                  <includes>
                    <include>**/*.jpg</include>
                    <include>**/*.gif</include>
                  </includes>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <sourceDirectory>${basedir}/..</sourceDirectory>
          <preserveDirectories>true</preserveDirectories>
          <attributes>
            <project-groupId>${project.groupId}</project-groupId>
            <project-artifactId>${project.artifactId}</project-artifactId>
            <project-version>${project.version}</project-version>
          </attributes>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
