Skip to content

Instantly share code, notes, and snippets.

@ntfc
Last active January 28, 2016 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntfc/b66364a0439b356835da to your computer and use it in GitHub Desktop.
Save ntfc/b66364a0439b356835da to your computer and use it in GitHub Desktop.
<?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>
<groupId>me.ntfc</groupId>
<artifactId>asciidoc-diagrams-issue</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- taken from asciidoctorj's 1.5.4 build.gradle -->
<jruby.version>1.7.21</jruby.version>
<asciidoctor-maven-plugin.version>1.5.3</asciidoctor-maven-plugin.version>
</properties>
<profiles>
<profile>
<id>docs</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<defaultGoal>process-resources</defaultGoal>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>1.0.10</version>
<configuration>
<jrubyVersion>${jruby.version}</jrubyVersion>
<gemHome>${project.build.directory}/gems</gemHome>
<gemPath>${project.build.directory}/gems</gemPath>
</configuration>
<executions>
<execution>
<goals>
<goal>initialize</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor-maven-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>${jruby.version}</version>
</dependency>
</dependencies>
<configuration>
<sourceDirectory>src/main/asciidoc</sourceDirectory>
<gemPath>${project.build.directory}/gems</gemPath>
</configuration>
<executions>
<execution>
<id>generate-issue-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<sourceDirectory>src/main/asciidoc</sourceDirectory>
<outputDirectory>${project.build.directory}/generated-docs</outputDirectory>
<backend>html5</backend>
<doctype>book</doctype>
<attributes>
<toc>left</toc>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>rubygems-proxy-releases</id>
<name>RubyGems.org Proxy (Releases)</name>
<url>http://rubygems-proxy.torquebox.org/releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment