pom.xml 5.22 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?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>
  <parent>
    <groupId>org.genesys-pgr</groupId>
    <artifactId>anno</artifactId>
    <version>1.1-SNAPSHOT</version>
  </parent>
  <artifactId>anno-docs</artifactId>
  <name>Genesys Uploader documentation</name>
  <description>.</description>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <asciidoctor.maven.plugin.version>1.5.6</asciidoctor.maven.plugin.version>
    <asciidoctorj.pdf.version>1.5.0-alpha.16</asciidoctorj.pdf.version>
    <asciidoctorj.version>1.5.6</asciidoctorj.version>
    <jruby.version>9.1.8.0</jruby.version>
  </properties>

  <build>
    <defaultGoal>process-resources</defaultGoal>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>buildnumber-maven-plugin</artifactId>
        <version>1.3</version>
        <executions>
          <execution>
            <id>create-buildNumber</id>
            <phase>validate</phase>
            <goals>
              <goal>create</goal>
              <goal>create-timestamp</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <!-- first check to see if you have locally modified files, and will
						fail if there are any. -->
          <doCheck>false</doCheck>
          <doUpdate>false</doUpdate>
          <shortRevisionLength>8</shortRevisionLength>
          <timestampFormat>{0,date,d MMMM yyyy}</timestampFormat>
          <timestampPropertyName>buildDate</timestampPropertyName>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.asciidoctor</groupId>
        <artifactId>asciidoctor-maven-plugin</artifactId>
        <version>${asciidoctor.maven.plugin.version}</version>
        <dependencies>
          <dependency>
            <groupId>org.asciidoctor</groupId>
            <artifactId>asciidoctorj-pdf</artifactId>
            <version>${asciidoctorj.pdf.version}</version>
          </dependency>
          <!-- Comment this section to use the default jruby artifact provided by the plugin -->
          <dependency>
            <groupId>org.jruby</groupId>
            <artifactId>jruby-complete</artifactId>
            <version>${jruby.version}</version>
          </dependency>
          <!-- Comment this section to use the default AsciidoctorJ artifact provided by the plugin -->
          <dependency>
            <groupId>org.asciidoctor</groupId>
            <artifactId>asciidoctorj</artifactId>
            <version>${asciidoctorj.version}</version>
          </dependency>
        </dependencies>
        <configuration>
          <sourceDirectory>src/docs/asciidoc</sourceDirectory>
          <!-- Attributes common to all output formats -->
          <attributes>
            <sourcedir>${project.build.sourceDirectory}</sourcedir>
            <buildNumber>${buildNumber}</buildNumber>
            <buildDate>${buildDate}</buildDate>
            <buildBranch>${scmBranch}</buildBranch>
            <projectArtifact>${project.artifactId}</projectArtifact>
            <projectVersion>${project.version}</projectVersion>
            <snippets>${snippetsDirectory}</snippets>
          </attributes>
        </configuration>
        <executions>
          <!-- <execution>
            <id>generate-pdf-doc-default-theme</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>process-asciidoc</goal>
            </goals>
            <configuration>
              <backend>pdf</backend>
              <outputDirectory>${project.build.directory}/generated-docs-default-theme</outputDirectory>
              <sourceHighlighter>coderay</sourceHighlighter>
              <doctype>book</doctype>
              <attributes>
                <icons>font</icons>
                <pagenums/>
                <toc/>
                <idprefix/>
                <idseparator>-</idseparator>
              </attributes>
            </configuration>
          </execution> -->
          <execution>
            <id>generate-pdf-custom-theme</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>process-asciidoc</goal>
            </goals>
            <configuration>
              <backend>pdf</backend>
              <sourceDocumentName>manual.adoc</sourceDocumentName>
              <outputFile>${project.build.directory}/anno-manual-${project.version}.pdf</outputFile>
              <!-- <outputDirectory>${project.build.directory}/generated-docs-custom-theme</outputDirectory> -->
              <sourceHighlighter>coderay</sourceHighlighter>
              <doctype>book</doctype>
              <attributes>
                <pdf-stylesdir>${project.basedir}/src/theme</pdf-stylesdir>
                <pdf-style>custom</pdf-style>
                <icons>font</icons>
                <pagenums/>
                <toc/>
                <idprefix/>
                <idseparator>-</idseparator>
              </attributes>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>