|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!--
|
3 | 3 |
|
4 |
| - Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved. |
| 4 | + Copyright (c) 2011, 2024 Oracle and/or its affiliates. All rights reserved. |
5 | 5 |
|
6 | 6 | This program and the accompanying materials are made available under the
|
7 | 7 | terms of the Eclipse Distribution License v. 1.0, which is available at
|
|
20 | 20 | <name>JSON Binding Docs</name>
|
21 | 21 |
|
22 | 22 | <properties>
|
23 |
| - <asciidoctor.maven.plugin.version>1.6.0</asciidoctor.maven.plugin.version> |
24 |
| - <asciidoctorj.version>1.6.2</asciidoctorj.version> |
25 |
| - <jruby.version>9.2.9.0</jruby.version> |
26 |
| - <rubygems.prawn.version>2.2.2</rubygems.prawn.version> |
| 23 | + <asciidoctor.maven.plugin.version>3.0.0</asciidoctor.maven.plugin.version> |
| 24 | + <asciidoctorj.version>2.5.11</asciidoctorj.version> |
| 25 | + <asciidoctorj.pdf.version>2.3.13</asciidoctorj.pdf.version> |
27 | 26 | </properties>
|
28 | 27 |
|
29 |
| - <repositories> |
30 |
| - <repository> |
31 |
| - <id>mavengems</id> |
32 |
| - <url>mavengem:https://rubygems.org</url> |
33 |
| - </repository> |
34 |
| - </repositories> |
35 |
| - |
36 |
| - <dependencies> |
37 |
| - <dependency> |
38 |
| - <groupId>rubygems</groupId> |
39 |
| - <artifactId>prawn</artifactId> |
40 |
| - <version>${rubygems.prawn.version}</version> |
41 |
| - <type>gem</type> |
42 |
| - <scope>provided</scope> |
43 |
| - </dependency> |
44 |
| - </dependencies> |
45 |
| - |
46 | 28 | <build>
|
47 | 29 | <defaultGoal>process-resources</defaultGoal>
|
48 | 30 | <plugins>
|
49 |
| - <plugin> |
50 |
| - <groupId>de.saumya.mojo</groupId> |
51 |
| - <artifactId>gem-maven-plugin</artifactId> |
52 |
| - <version>1.0.10</version> |
53 |
| - <configuration> |
54 |
| - <jrubyVersion>${jruby.version}</jrubyVersion> |
55 |
| - <gemHome>${project.build.directory}/gems</gemHome> |
56 |
| - <gemPath>${project.build.directory}/gems</gemPath> |
57 |
| - </configuration> |
58 |
| - <executions> |
59 |
| - <execution> |
60 |
| - <goals> |
61 |
| - <goal>initialize</goal> |
62 |
| - </goals> |
63 |
| - </execution> |
64 |
| - </executions> |
65 |
| - </plugin> |
66 | 31 | <plugin>
|
67 | 32 | <groupId>org.asciidoctor</groupId>
|
68 | 33 | <artifactId>asciidoctor-maven-plugin</artifactId>
|
69 | 34 | <version>${asciidoctor.maven.plugin.version}</version>
|
70 | 35 | <dependencies>
|
71 |
| - <dependency> |
72 |
| - <groupId>org.jruby</groupId> |
73 |
| - <artifactId>jruby-complete</artifactId> |
74 |
| - <version>${jruby.version}</version> |
75 |
| - </dependency> |
76 | 36 | <dependency>
|
77 | 37 | <groupId>org.asciidoctor</groupId>
|
78 | 38 | <artifactId>asciidoctorj</artifactId>
|
79 | 39 | <version>${asciidoctorj.version}</version>
|
80 | 40 | </dependency>
|
| 41 | + <dependency> |
| 42 | + <groupId>org.asciidoctor</groupId> |
| 43 | + <artifactId>asciidoctorj-pdf</artifactId> |
| 44 | + <version>${asciidoctorj.pdf.version}</version> |
| 45 | + </dependency> |
81 | 46 | </dependencies>
|
82 | 47 | <configuration>
|
83 | 48 | <sourceDirectory>src/docs</sourceDirectory>
|
84 | 49 | <sourceDocumentName>user-guide.adoc</sourceDocumentName>
|
85 |
| - <gemPath>${project.build.directory}/gems-provided</gemPath> |
86 |
| - <attributes> |
87 |
| - <sourcedir>${project.build.sourceDirectory}</sourcedir> |
88 |
| - </attributes> |
89 | 50 | </configuration>
|
90 | 51 | <executions>
|
91 | 52 | <execution>
|
|
96 | 57 | </goals>
|
97 | 58 | <configuration>
|
98 | 59 | <backend>html5</backend>
|
99 |
| - <sourceHighlighter>coderay</sourceHighlighter> |
100 | 60 | <attributes>
|
| 61 | + <sourcedir>${project.build.sourceDirectory}</sourcedir> |
101 | 62 | <imagesdir>./images</imagesdir>
|
102 | 63 | <toc>left</toc>
|
103 | 64 | <toclevels>3</toclevels>
|
|
109 | 70 | </attributes>
|
110 | 71 | </configuration>
|
111 | 72 | </execution>
|
| 73 | + <execution> |
| 74 | + <id>generate-pdf-doc</id> |
| 75 | + <phase>generate-resources</phase> |
| 76 | + <goals> |
| 77 | + <goal>process-asciidoc</goal> |
| 78 | + </goals> |
| 79 | + <configuration> |
| 80 | + <backend>pdf</backend> |
| 81 | + <attributes> |
| 82 | + <imagesdir>./images</imagesdir> |
| 83 | + <doctype>book</doctype> |
| 84 | + <compat-mode/> |
| 85 | + <data-uri/> |
| 86 | + <icons>font</icons> |
| 87 | + <pagenums/> |
| 88 | + <toc/> |
| 89 | + <icons>font</icons> |
| 90 | + <sectanchors>true</sectanchors> |
| 91 | + <idprefix/> |
| 92 | + <idseparator>-</idseparator> |
| 93 | + <docinfo1>true</docinfo1> |
| 94 | + <embedAssets>true</embedAssets> |
| 95 | + </attributes> |
| 96 | + </configuration> |
| 97 | + </execution> |
112 | 98 | </executions>
|
113 | 99 | </plugin>
|
114 | 100 | </plugins>
|
115 |
| - |
116 |
| - <!-- This extension converts reubygems repository to maven repository on the fly --> |
117 |
| - <!-- This is needed because of the old maven proxy address does not support HTTPS --> |
118 |
| - <extensions> |
119 |
| - <extension> |
120 |
| - <groupId>org.torquebox.mojo</groupId> |
121 |
| - <artifactId>mavengem-wagon</artifactId> |
122 |
| - <version>1.0.3</version> |
123 |
| - </extension> |
124 |
| - </extensions> |
125 | 101 | </build>
|
126 | 102 | </project>
|
0 commit comments