123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <?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</groupId>
- <artifactId>articles</artifactId>
- <version>1.0-SNAPSHOT</version>
- <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>
- <asciidoctor.maven.plugin.version>2.1.0</asciidoctor.maven.plugin.version>
- <asciidoctorj.pdf.version>1.6.0</asciidoctorj.pdf.version>
- <asciidoctorj.version>2.5.1</asciidoctorj.version>
- <jruby.version>9.2.17.0</jruby.version>
- <pdf.cjk.version>0.1.3</pdf.cjk.version>
- <pdf.cjk.kaigen.version>0.1.1</pdf.cjk.kaigen.version>
- <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>
- <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>
- <pdf.cjk.kaigen.download.dir>${project.build.directory}/downloaded-resources</pdf.cjk.kaigen.download.dir>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>com.googlecode.maven-download-plugin</groupId>
- <artifactId>download-maven-plugin</artifactId>
- <version>1.3.0</version>
- <executions>
- <!-- Chinese theme & fonts -->
- <execution>
- <id>install-theme-KaiGenGothicCN</id>
- <phase>initialize</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>${pdf.cjk.kaigen.themes.download.uri}/KaiGenGothicCN-theme.yml</url>
- <outputDirectory>${pdf.cjk.kaigen.download.dir}/themes</outputDirectory>
- <md5>8f40b658f32767456efba0267eb13c81</md5>
- </configuration>
- </execution>
- <execution>
- <id>install-font-KaiGenGothicCN-Bold-Italic</id>
- <phase>initialize</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>${pdf.cjk.kaigen.fonts.download.uri}/KaiGenGothicCN-Bold-Italic.ttf</url>
- <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
- <md5>131053dc1e9b83c04a1604e9b8fbd2ff</md5>
- </configuration>
- </execution>
- <execution>
- <id>install-font-KaiGenGothicCN-Bold</id>
- <phase>initialize</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>${pdf.cjk.kaigen.fonts.download.uri}/KaiGenGothicCN-Bold.ttf</url>
- <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
- <md5>151442028333ac1fe314eed4c5fdb39a</md5>
- </configuration>
- </execution>
- <execution>
- <id>install-font-KaiGenGothicCN-Regular-Italic</id>
- <phase>initialize</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>${pdf.cjk.kaigen.fonts.download.uri}/KaiGenGothicCN-Regular-Italic.ttf</url>
- <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
- <md5>9747163e814b7b6301e32b3838a0f8c8</md5>
- </configuration>
- </execution>
- <execution>
- <id>install-font-KaiGenGothicCN-Regular</id>
- <phase>initialize</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>${pdf.cjk.kaigen.fonts.download.uri}/KaiGenGothicCN-Regular.ttf</url>
- <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
- <md5>1dbdd22db9a1748e38e31698a5d9130a</md5>
- </configuration>
- </execution>
- <!-- RobotoMono Fonts -->
- <execution>
- <id>install-font-RobotoMono-Bold-Italic</id>
- <phase>initialize</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>${pdf.cjk.kaigen.fonts.download.uri}/RobotoMono-BoldItalic.ttf</url>
- <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
- <md5>28c34883fca976c0d408c1a0a8596ece</md5>
- </configuration>
- </execution>
- <execution>
- <id>install-font-RobotoMono-Bold</id>
- <phase>initialize</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>${pdf.cjk.kaigen.fonts.download.uri}/RobotoMono-Bold.ttf</url>
- <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
- <md5>cf661842dcc7e1cc63147893ea8f47e8</md5>
- </configuration>
- </execution>
- <execution>
- <id>install-font-RobotoMono-Italic</id>
- <phase>initialize</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>${pdf.cjk.kaigen.fonts.download.uri}/RobotoMono-Italic.ttf</url>
- <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
- <md5>7b4c715c7e2b43e8f001c601f4fecbb0</md5>
- </configuration>
- </execution>
- <execution>
- <id>install-font-RobotoMono-Regular</id>
- <phase>initialize</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>${pdf.cjk.kaigen.fonts.download.uri}/RobotoMono-Regular.ttf</url>
- <outputDirectory>${pdf.cjk.kaigen.download.dir}/fonts</outputDirectory>
- <md5>e2642a6882ef2432ee9ac442691a4384</md5>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctor-maven-plugin</artifactId>
- <version>${asciidoctor.maven.plugin.version}</version>
- <executions>
- <execution>
- <id>generate-html</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>process-asciidoc</goal>
- </goals>
- <configuration>
- <backend>spring-html</backend>
- <sourceDirectory>${basedir}/src/main/asciidoc</sourceDirectory>
- <relativeBaseDir>true</relativeBaseDir>
- <preserveDirectories>true</preserveDirectories>
- <attributes>
- <source-highlighter>highlight.js</source-highlighter>
- <sectanchors>true</sectanchors>
- <toc>left</toc>
- <docinfo>shared</docinfo>
- </attributes>
- </configuration>
- </execution>
- <!--
- <execution>
- <id>generate-pdf-doc-default-theme</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>process-asciidoc</goal>
- </goals>
- <configuration>
- <backend>pdf</backend>
- <sourceDirectory>${basedir}/src/main/asciidoc</sourceDirectory>
- <relativeBaseDir>true</relativeBaseDir>
- <preserveDirectories>true</preserveDirectories>
- <attributes>
- <source-highlighter>coderay</source-highlighter>
- <icons>font</icons>
- <pagenums/>
- <toc/>
- <idprefix/>
- <idseparator>-</idseparator>
- <scripts>cjk</scripts>
- <pdf-style>KaiGenGothicCN</pdf-style>
- <pdf-stylesdir>${pdf.cjk.kaigen.download.dir}/themes</pdf-stylesdir>
- <pdf-fontsdir>${pdf.cjk.kaigen.download.dir}/fonts</pdf-fontsdir>
- </attributes>
- </configuration>
- </execution>
- -->
- </executions>
- <dependencies>
- <dependency>
- <groupId>io.spring.asciidoctor.backends</groupId>
- <artifactId>spring-asciidoctor-backends</artifactId>
- <version>0.0.5</version>
- </dependency>
- <dependency>
- <groupId>io.spring.asciidoctor</groupId>
- <artifactId>spring-asciidoctor-extensions-spring-boot</artifactId>
- <version>0.6.1</version>
- </dependency>
- <dependency>
- <groupId>io.github.pxzxj</groupId>
- <artifactId>asciidoctor-bilibili-extension</artifactId>
- <version>1.0</version>
- </dependency>
- <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>
- <doctype>article</doctype>
- <attributes>
- <sectids>true</sectids>
- <version>${project.version}</version>
- <projectName>${project.name}</projectName>
- <projectVersion>${project.version}</projectVersion>
- <allow-uri-read>true</allow-uri-read>
- <toclevels>4</toclevels>
- <numbered>true</numbered>
- </attributes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|