-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
203 lines (200 loc) · 7.48 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<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.bsiag.htmltools</groupId>
<artifactId>htmltools-maven-plugin</artifactId>
<version>1.1.5-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<!-- tag::pluginRepositories[] -->
<pluginRepositories>
<pluginRepository>
<id>bintray.jmini.maven</id>
<url>http://dl.bintray.com/jmini/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<!-- end::pluginRepositories[] -->
<properties>
<asciidoctor.maven.plugin.version>1.5.3</asciidoctor.maven.plugin.version>
<asciidoctorj.version>1.5.4</asciidoctorj.version>
<asciidoctorj.gh-edit.version>2.0.1</asciidoctorj.gh-edit.version>
<jruby.version>1.7.21</jruby.version>
<guava.version>15.0</guava.version>
<hamcrest.core.version>1.1</hamcrest.core.version>
<junit.version>4.8</junit.version>
<jsoup.version>1.10.2</jsoup.version>
<maven.compiler.plugin.version>3.1</maven.compiler.plugin.version>
<maven.plugin.annotations.version>3.4</maven.plugin.annotations.version>
<maven.plugin.api.version>3.0</maven.plugin.api.version>
<maven.plugin.plugin.version>3.4</maven.plugin.plugin.version>
<maven.release.plugin.version>2.5.2</maven.release.plugin.version>
<project.java.version>1.7</project.java.version>
<github.site.version>0.12</github.site.version>
<adoc.output>${project.build.directory}/generated-docs</adoc.output>
<github.global.server>github</github.global.server> <!-- this should match the sever id in your settings.xml -->
<github.repository.owner>jmini</github.repository.owner>
<github.repository.name>htmltools</github.repository.name>
<github.commit.message>Update gh-pages to publish on GitHub pages.</github.commit.message>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${maven.plugin.api.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsoup.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${maven.plugin.annotations.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>${hamcrest.core.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<source>${project.java.version}</source>
<target>${project.java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${maven.plugin.plugin.version}</version>
</plugin>
<!-- Run AsciidoctorJ -->
<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>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>${asciidoctorj.version}</version>
</dependency>
<dependency>
<groupId>com.bsiag.asciidoctorj</groupId>
<artifactId>gh-edit</artifactId>
<version>${asciidoctorj.gh-edit.version}</version>
</dependency>
</dependencies>
<configuration>
<sourceDirectory>src/main/docs</sourceDirectory>
<outputDirectory>${adoc.output}</outputDirectory>
<backend>html5</backend>
<sourceHighlighter>coderay</sourceHighlighter>
<attributes>
<revdate>${build.date}</revdate>
<sourcedir>${project.build.sourceDirectory}</sourcedir>
<project-version>${project.version}</project-version>
<toc>left</toc>
<icons>font</icons>
<sectanchors>true</sectanchors>
<idprefix />
<idseparator>-</idseparator>
</attributes>
</configuration>
<executions>
<execution>
<id>generate-adoc</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Commit and push site to github pages, by default to gh-pages branch -->
<!-- https://github.com/github/maven-plugins -->
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>${github.site.version}</version>
<configuration>
<message>${github.commit.message}</message>
<outputDirectory>${adoc.output}</outputDirectory>
<repositoryName>${github.repository.name}</repositoryName>
<repositoryOwner>${github.repository.owner}</repositoryOwner>
<dryRun>false</dryRun>
<noJekyll>true</noJekyll>
</configuration>
<executions>
<execution>
<id>push-to-gh-pages</id>
<phase>deploy</phase>
<goals>
<goal>site</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<scm>
<connection>scm:git:https://github.com/jmini/htmltools.git</connection>
<developerConnection>scm:git:git@github.com:jmini/htmltools.git</developerConnection>
<url>https://github.com/jmini/htmltools</url>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<repository>
<id>bintray.jmini.maven</id>
<url>https://api.bintray.com/maven/jmini/maven/htmltools</url>
</repository>
</distributionManagement>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven.release.plugin.version}</version>
<configuration>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>