pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.github</groupId>
  7. <artifactId>articles</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>1.8</maven.compiler.source>
  12. <maven.compiler.target>1.8</maven.compiler.target>
  13. <asciidoctor.maven.plugin.version>2.1.0</asciidoctor.maven.plugin.version>
  14. <asciidoctorj.pdf.version>1.6.0</asciidoctorj.pdf.version>
  15. <asciidoctorj.version>2.5.1</asciidoctorj.version>
  16. <jruby.version>9.2.17.0</jruby.version>
  17. <pdf.cjk.version>0.1.3</pdf.cjk.version>
  18. <pdf.cjk.kaigen.version>0.1.1</pdf.cjk.kaigen.version>
  19. <pdf.cjk.kaigen.fonts.download.uri>https://github.com/chloerei/asciidoctor-pdf-cjk-kai_gen_gothic/releases/download/v0.1.0-fonts</pdf.cjk.kaigen.fonts.download.uri>
  20. <pdf.cjk.kaigen.themes.download.uri>https://raw.githubusercontent.com/chloerei/asciidoctor-pdf-cjk-kai_gen_gothic/master/data/themes</pdf.cjk.kaigen.themes.download.uri>
  21. <pdf.cjk.kaigen.download.dir>${project.build.directory}/downloaded-resources</pdf.cjk.kaigen.download.dir>
  22. </properties>
  23. <build>
  24. <plugins>
  25. <plugin>
  26. <groupId>com.googlecode.maven-download-plugin</groupId>
  27. <artifactId>download-maven-plugin</artifactId>
  28. <version>1.3.0</version>
  29. <executions>
  30. <!-- Chinese theme & fonts -->
  31. <execution>
  32. <id>install-theme-KaiGenGothicCN</id>
  33. <phase>initialize</phase>
  34. <goals>
  35. <goal>wget</goal>
  36. </goals>
  37. <configuration>
  38. <url>${pdf.cjk.kaigen.themes.download.uri}/KaiGenGothicCN-theme.yml</url>
  39. <outputDirectory>${pdf.cjk.kaigen.download.dir}/themes</outputDirectory>
  40. <md5>8f40b658f32767456efba0267eb13c81</md5>
  41. </configuration>
  42. </execution>
  43. <execution>
  44. <id>install-font-KaiGenGothicCN-Bold-Italic</id>
  45. <phase>initialize</phase>
  46. <goals>
  47. <goal>wget</goal>
  48. </goals>
  49. <configuration>
  50. <url>${pdf.cjk.kaigen.fonts.download.uri}/KaiGenGothicCN-Bold-Italic.ttf</url>
  51. <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
  52. <md5>131053dc1e9b83c04a1604e9b8fbd2ff</md5>
  53. </configuration>
  54. </execution>
  55. <execution>
  56. <id>install-font-KaiGenGothicCN-Bold</id>
  57. <phase>initialize</phase>
  58. <goals>
  59. <goal>wget</goal>
  60. </goals>
  61. <configuration>
  62. <url>${pdf.cjk.kaigen.fonts.download.uri}/KaiGenGothicCN-Bold.ttf</url>
  63. <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
  64. <md5>151442028333ac1fe314eed4c5fdb39a</md5>
  65. </configuration>
  66. </execution>
  67. <execution>
  68. <id>install-font-KaiGenGothicCN-Regular-Italic</id>
  69. <phase>initialize</phase>
  70. <goals>
  71. <goal>wget</goal>
  72. </goals>
  73. <configuration>
  74. <url>${pdf.cjk.kaigen.fonts.download.uri}/KaiGenGothicCN-Regular-Italic.ttf</url>
  75. <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
  76. <md5>9747163e814b7b6301e32b3838a0f8c8</md5>
  77. </configuration>
  78. </execution>
  79. <execution>
  80. <id>install-font-KaiGenGothicCN-Regular</id>
  81. <phase>initialize</phase>
  82. <goals>
  83. <goal>wget</goal>
  84. </goals>
  85. <configuration>
  86. <url>${pdf.cjk.kaigen.fonts.download.uri}/KaiGenGothicCN-Regular.ttf</url>
  87. <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
  88. <md5>1dbdd22db9a1748e38e31698a5d9130a</md5>
  89. </configuration>
  90. </execution>
  91. <!-- RobotoMono Fonts -->
  92. <execution>
  93. <id>install-font-RobotoMono-Bold-Italic</id>
  94. <phase>initialize</phase>
  95. <goals>
  96. <goal>wget</goal>
  97. </goals>
  98. <configuration>
  99. <url>${pdf.cjk.kaigen.fonts.download.uri}/RobotoMono-BoldItalic.ttf</url>
  100. <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
  101. <md5>28c34883fca976c0d408c1a0a8596ece</md5>
  102. </configuration>
  103. </execution>
  104. <execution>
  105. <id>install-font-RobotoMono-Bold</id>
  106. <phase>initialize</phase>
  107. <goals>
  108. <goal>wget</goal>
  109. </goals>
  110. <configuration>
  111. <url>${pdf.cjk.kaigen.fonts.download.uri}/RobotoMono-Bold.ttf</url>
  112. <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
  113. <md5>cf661842dcc7e1cc63147893ea8f47e8</md5>
  114. </configuration>
  115. </execution>
  116. <execution>
  117. <id>install-font-RobotoMono-Italic</id>
  118. <phase>initialize</phase>
  119. <goals>
  120. <goal>wget</goal>
  121. </goals>
  122. <configuration>
  123. <url>${pdf.cjk.kaigen.fonts.download.uri}/RobotoMono-Italic.ttf</url>
  124. <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
  125. <md5>7b4c715c7e2b43e8f001c601f4fecbb0</md5>
  126. </configuration>
  127. </execution>
  128. <execution>
  129. <id>install-font-RobotoMono-Regular</id>
  130. <phase>initialize</phase>
  131. <goals>
  132. <goal>wget</goal>
  133. </goals>
  134. <configuration>
  135. <url>${pdf.cjk.kaigen.fonts.download.uri}/RobotoMono-Regular.ttf</url>
  136. <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
  137. <md5>e2642a6882ef2432ee9ac442691a4384</md5>
  138. </configuration>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.asciidoctor</groupId>
  144. <artifactId>asciidoctor-maven-plugin</artifactId>
  145. <version>${asciidoctor.maven.plugin.version}</version>
  146. <executions>
  147. <execution>
  148. <id>generate-html</id>
  149. <phase>generate-resources</phase>
  150. <goals>
  151. <goal>process-asciidoc</goal>
  152. </goals>
  153. <configuration>
  154. <backend>spring-html</backend>
  155. <sourceDirectory>${basedir}/src/main/asciidoc</sourceDirectory>
  156. <relativeBaseDir>true</relativeBaseDir>
  157. <preserveDirectories>true</preserveDirectories>
  158. <attributes>
  159. <source-highlighter>highlight.js</source-highlighter>
  160. <sectanchors>true</sectanchors>
  161. <toc>left</toc>
  162. <docinfo>shared</docinfo>
  163. </attributes>
  164. </configuration>
  165. </execution>
  166. <!--
  167. <execution>
  168. <id>generate-pdf-doc-default-theme</id>
  169. <phase>generate-resources</phase>
  170. <goals>
  171. <goal>process-asciidoc</goal>
  172. </goals>
  173. <configuration>
  174. <backend>pdf</backend>
  175. <sourceDirectory>${basedir}/src/main/asciidoc</sourceDirectory>
  176. <relativeBaseDir>true</relativeBaseDir>
  177. <preserveDirectories>true</preserveDirectories>
  178. <attributes>
  179. <source-highlighter>coderay</source-highlighter>
  180. <icons>font</icons>
  181. <pagenums/>
  182. <toc/>
  183. <idprefix/>
  184. <idseparator>-</idseparator>
  185. <scripts>cjk</scripts>
  186. <pdf-style>KaiGenGothicCN</pdf-style>
  187. <pdf-stylesdir>${pdf.cjk.kaigen.download.dir}/themes</pdf-stylesdir>
  188. <pdf-fontsdir>${pdf.cjk.kaigen.download.dir}/fonts</pdf-fontsdir>
  189. </attributes>
  190. </configuration>
  191. </execution>
  192. -->
  193. </executions>
  194. <dependencies>
  195. <dependency>
  196. <groupId>io.spring.asciidoctor.backends</groupId>
  197. <artifactId>spring-asciidoctor-backends</artifactId>
  198. <version>0.0.5</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>io.spring.asciidoctor</groupId>
  202. <artifactId>spring-asciidoctor-extensions-spring-boot</artifactId>
  203. <version>0.6.1</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>io.github.pxzxj</groupId>
  207. <artifactId>asciidoctor-bilibili-extension</artifactId>
  208. <version>1.0</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.asciidoctor</groupId>
  212. <artifactId>asciidoctorj-pdf</artifactId>
  213. <version>${asciidoctorj.pdf.version}</version>
  214. </dependency>
  215. <!-- Comment this section to use the default jruby artifact provided by the plugin -->
  216. <dependency>
  217. <groupId>org.jruby</groupId>
  218. <artifactId>jruby-complete</artifactId>
  219. <version>${jruby.version}</version>
  220. </dependency>
  221. <!-- Comment this section to use the default AsciidoctorJ artifact provided by the plugin -->
  222. <dependency>
  223. <groupId>org.asciidoctor</groupId>
  224. <artifactId>asciidoctorj</artifactId>
  225. <version>${asciidoctorj.version}</version>
  226. </dependency>
  227. </dependencies>
  228. <configuration>
  229. <doctype>article</doctype>
  230. <attributes>
  231. <sectids>true</sectids>
  232. <version>${project.version}</version>
  233. <projectName>${project.name}</projectName>
  234. <projectVersion>${project.version}</projectVersion>
  235. <allow-uri-read>true</allow-uri-read>
  236. <toclevels>4</toclevels>
  237. <numbered>true</numbered>
  238. </attributes>
  239. </configuration>
  240. </plugin>
  241. </plugins>
  242. </build>
  243. </project>