DATAGEODE-32 - Move custom Asciidoctor Maven build plugin configuration testing HTML doc generation into profile.

This commit is contained in:
John Blum
2017-07-30 11:06:17 -07:00
parent 7eee3ee7e1
commit 91fd351cbc

71
pom.xml
View File

@@ -248,34 +248,9 @@
<attributes>
<basedocdir>${project.basedir}/src/main/asciidoc</basedocdir>
<doctype>book</doctype>
<numbered>true</numbered>
<sectnums>true</sectnums>
<toclevels>2</toclevels>
<version>${project.version}</version>
<!-- TODO include other attributes from build.gradle! -->
</attributes>
</configuration>
<executions>
<execution>
<id>html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>html5</backend>
<outputDirectory>${project.root}/target/site/reference/html</outputDirectory>
<sectids>false</sectids>
<sourceHighlighter>prettify</sourceHighlighter>
<attributes>
<linkcss>true</linkcss>
<icons>font</icons>
<sectanchors>true</sectanchors>
<stylesheet>spring.css</stylesheet>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
@@ -292,6 +267,7 @@
</build>
<profiles>
<profile>
<id>release</id>
<build>
@@ -304,6 +280,51 @@
</plugins>
</build>
</profile>
<profile>
<id>html-asciidoc</id>
<build>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<configuration>
<attributes>
<basedocdir>${project.basedir}/src/main/asciidoc</basedocdir>
<doctype>book</doctype>
<numbered>true</numbered>
<sectnums>true</sectnums>
<toclevels>2</toclevels>
<version>${project.version}</version>
<!-- TODO include other attributes from build.gradle! -->
</attributes>
</configuration>
<executions>
<execution>
<id>html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>html5</backend>
<outputDirectory>${project.root}/target/site/reference/html</outputDirectory>
<sectids>false</sectids>
<sourceHighlighter>prettify</sourceHighlighter>
<attributes>
<linkcss>true</linkcss>
<icons>font</icons>
<sectanchors>true</sectanchors>
<stylesheet>spring.css</stylesheet>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>