-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
166 lines (155 loc) · 6.77 KB
/
pom.xml
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?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>com.github.adminfaces</groupId>
<artifactId>admin-docs</artifactId>
<version>1.1.1-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<asciidoctorj.pdf.version>1.5.0-alpha.16</asciidoctorj.pdf.version>
<asciidoctorj.version>1.5.6</asciidoctorj.version>
<jruby.version>9.1.13.0</jruby.version>
<linkAdminDocs>http://adminfaces.github.io/docs/latest</linkAdminDocs>
<docs.outputdir>target/generated-docs/latest</docs.outputdir>
</properties>
<description>
AdminFaces documentation.
</description>
<developers>
<developer>
<name>Rafael M. Pestano</name>
<email>rmpestanoATgmail.com</email>
</developer>
</developers>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/adminfaces/docs.git</connection>
<developerConnection>scm:git:git@github.com:adminfaces/docs.git</developerConnection>
<url>https://github.com/adminfaces/docs.git</url>
<tag>1.0.0-RC21</tag>
</scm>
<ciManagement>
<system>tranvis-ci.org</system>
<url>https://travis-ci.org/adminfaces/docs</url>
</ciManagement>
<build>
<resources>
<resource>
<directory>src/docs</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>1.5.6</version>
<configuration>
<sourceDirectory>src/docs</sourceDirectory>
<sourceDocumentName>index.adoc</sourceDocumentName>
<outputDirectory>${docs.outputdir}</outputDirectory>
<headerFooter>true</headerFooter>
<doctype>book</doctype>
<attributes>
<imagesdir>./images</imagesdir>
<docVersion>${project.version}</docVersion>
<link-admin-docs>${linkAdminDocs}</link-admin-docs>
<hardbreaks />
<numbered />
<idprefix />
<revnumber>${project.version}</revnumber>
</attributes>
</configuration>
<executions>
<execution>
<id>output-html5</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<sourceHighlighter>coderay</sourceHighlighter>
<backend>html5</backend>
<attributes>
<linkcss>true</linkcss>
<linkattrs>true</linkattrs>
<sectnums />
<toc>right</toc>
<tocLevels>3</tocLevels>
<icons>font</icons>
<sectanchors>true</sectanchors>
</attributes>
</configuration>
</execution>
<execution>
<id>output-pdf</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>pdf</backend>
<sourceHighlighter>coderay</sourceHighlighter>
<attributes>
<icons>font</icons>
<pagenums />
<toc />
<idseparator>-</idseparator>
</attributes>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>${asciidoctorj.pdf.version}</version>
</dependency>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>${jruby.version}</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>${asciidoctorj.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>1.1</version>
<configuration>
<checkoutDirectory>${project.build.outputDirectory}</checkoutDirectory>
<checkinComment>Publishing AdminFaces ${project.version} documentation.
</checkinComment>
<content>target/generated-docs</content>
<skipDeletedFiles>true</skipDeletedFiles>
<pubScmUrl>scm:git:https://${GH_TOKEN}@github.com/adminfaces/docs.git
</pubScmUrl>
<scmBranch>gh-pages</scmBranch>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<properties>
<docs.outputdir>target/generated-docs/${project.version}</docs.outputdir>
<linkAdminDocs>http://adminfaces.github.io/docs/${project.version}</linkAdminDocs>
</properties>
</profile>
</profiles>
</project>