|
72 | 72 | <source.level>17</source.level>
|
73 | 73 | <artifactory-maven-plugin.version>3.3.0</artifactory-maven-plugin.version>
|
74 | 74 | <assertj.version>3.23.1</assertj.version>
|
75 |
| - <docs.resources.version>0.2.5</docs.resources.version> |
| 75 | + <spring-asciidoctor-backends.version>0.0.3</spring-asciidoctor-backends.version> |
76 | 76 | <evo.version>1.3</evo.version>
|
77 | 77 | <logback.version>1.2.6</logback.version>
|
78 | 78 | <jacoco>0.8.7</jacoco>
|
|
193 | 193 | </properties>
|
194 | 194 |
|
195 | 195 | <dependencies>
|
196 |
| - <dependency> |
197 |
| - <groupId>io.spring.docresources</groupId> |
198 |
| - <artifactId>spring-doc-resources</artifactId> |
199 |
| - <version>${docs.resources.version}</version> |
200 |
| - <type>zip</type> |
201 |
| - <optional>true</optional> |
202 |
| - </dependency> |
203 | 196 | <dependency>
|
204 | 197 | <groupId>org.springframework.data.build</groupId>
|
205 | 198 | <artifactId>spring-data-build-resources</artifactId>
|
|
221 | 214 | <groupId>org.apache.maven.plugins</groupId>
|
222 | 215 | <artifactId>maven-dependency-plugin</artifactId>
|
223 | 216 | <executions>
|
224 |
| - <execution> |
225 |
| - <id>unpack-doc-resources</id> |
226 |
| - <goals> |
227 |
| - <goal>unpack-dependencies</goal> |
228 |
| - </goals> |
229 |
| - <phase>generate-resources</phase> |
230 |
| - <configuration> |
231 |
| - <includeGroupIds>io.spring.docresources</includeGroupIds> |
232 |
| - <includeArtifactIds>spring-doc-resources</includeArtifactIds> |
233 |
| - <includeTypes>zip</includeTypes> |
234 |
| - <excludeTransitive>true</excludeTransitive> |
235 |
| - <outputDirectory>${generated-asciidoc-sources.directory}</outputDirectory> |
236 |
| - </configuration> |
237 |
| - </execution> |
238 | 217 | <execution>
|
239 | 218 | <id>unpack-shared-resources</id>
|
240 | 219 | <goals>
|
|
356 | 335 | <fileset dir="${generated-docs.directory}" includes="*.html"/>
|
357 | 336 | </copy>
|
358 | 337 |
|
359 |
| - <!-- Copy and rename the Epub file --> |
| 338 | + <!-- Copy and rename the PDF file --> |
360 | 339 | <copy failonerror="false" file="${generated-docs.directory}/index.pdf"
|
361 | 340 | tofile="target/site/reference/pdf/spring-hateoas-reference.pdf"/>
|
362 | 341 |
|
363 |
| - <!-- Copy and rename the PDF file --> |
364 |
| - <copy failonerror="false" file="${generated-docs.directory}/index.epub" |
365 |
| - tofile="target/site/reference/epub/spring-hateoas-reference.epub"/> |
366 |
| - |
367 | 342 | </target>
|
368 | 343 | </configuration>
|
369 | 344 | <goals>
|
|
382 | 357 | <plugin>
|
383 | 358 | <groupId>org.asciidoctor</groupId>
|
384 | 359 | <artifactId>asciidoctor-maven-plugin</artifactId>
|
385 |
| - <version>2.0.0-RC.1</version> |
| 360 | + <version>2.2.2</version> |
386 | 361 | <dependencies>
|
387 | 362 | <dependency>
|
388 | 363 | <groupId>org.jruby</groupId>
|
|
392 | 367 | <dependency>
|
393 | 368 | <groupId>org.asciidoctor</groupId>
|
394 | 369 | <artifactId>asciidoctorj</artifactId>
|
395 |
| - <version>2.0.0-RC.1</version> |
| 370 | + <version>2.5.3</version> |
396 | 371 | </dependency>
|
397 | 372 | <dependency>
|
398 | 373 | <groupId>org.asciidoctor</groupId>
|
399 | 374 | <artifactId>asciidoctorj-pdf</artifactId>
|
400 |
| - <version>1.5.0-alpha.16</version> |
401 |
| - </dependency> |
402 |
| - <dependency> |
403 |
| - <groupId>org.asciidoctor</groupId> |
404 |
| - <artifactId>asciidoctorj-epub3</artifactId> |
405 |
| - <version>1.5.0-alpha.8.1</version> |
| 375 | + <version>1.6.2</version> |
406 | 376 | </dependency>
|
| 377 | + <dependency> |
| 378 | + <groupId>io.spring.asciidoctor.backends</groupId> |
| 379 | + <artifactId>spring-asciidoctor-backends</artifactId> |
| 380 | + <version>${spring-asciidoctor-backends.version}</version> |
| 381 | + </dependency> |
407 | 382 | </dependencies>
|
| 383 | + |
408 | 384 | <executions>
|
409 | 385 |
|
410 | 386 | <execution>
|
|
416 | 392 | <configuration>
|
417 | 393 | <sourceDirectory>${generated-asciidoc-sources.directory}</sourceDirectory>
|
418 | 394 | <sourceDocumentName>index.adoc</sourceDocumentName>
|
419 |
| - <backend>html5</backend> |
| 395 | + <backend>spring-html</backend> |
420 | 396 | <outputDirectory>${generated-docs.directory}</outputDirectory>
|
421 | 397 | <sourceHighlighter>highlight.js</sourceHighlighter>
|
422 | 398 | <attributes>
|
|
425 | 401 | <linkcss>true</linkcss>
|
426 | 402 | <sectanchors>true</sectanchors>
|
427 | 403 | <stylesdir>./css</stylesdir>
|
428 |
| - <stylesheet>spring.css</stylesheet> |
| 404 | + <stylesheet>site.css</stylesheet> |
429 | 405 | <toc>left</toc>
|
430 | 406 | </attributes>
|
431 | 407 | </configuration>
|
432 | 408 | </execution>
|
433 | 409 |
|
434 | 410 | <!-- Requires a fix to Javadoc generation first otherwise build duration explodes
|
435 |
| - <execution> |
436 |
| - <id>epub</id> |
437 |
| - <phase>compile</phase> |
438 |
| - <goals> |
439 |
| - <goal>process-asciidoc</goal> |
440 |
| - </goals> |
441 |
| - <configuration> |
442 |
| - <sourceDirectory>${generated-asciidoc-sources.directory}</sourceDirectory> |
443 |
| - <sourceDocumentName>index.adoc</sourceDocumentName> |
444 |
| - <backend>epub3</backend> |
445 |
| - <outputDirectory>${generated-docs.directory}</outputDirectory> |
446 |
| - <sourceHighlighter>coderay</sourceHighlighter> |
447 |
| - </configuration> |
448 |
| - </execution> |
449 |
| -
|
450 | 411 | <execution>
|
451 | 412 | <id>pdf</id>
|
452 | 413 | <phase>compile</phase>
|
|
1215 | 1176 | <enabled>false</enabled>
|
1216 | 1177 | </releases>
|
1217 | 1178 | </repository>
|
| 1179 | + <repository> |
| 1180 | + <id>spring-release</id> |
| 1181 | + <name>Spring Releases</name> |
| 1182 | + <url>https://repo.spring.io/release</url> |
| 1183 | + <snapshots> |
| 1184 | + <enabled>false</enabled> |
| 1185 | + </snapshots> |
| 1186 | + </repository> |
1218 | 1187 | </repositories>
|
1219 | 1188 |
|
1220 | 1189 | <pluginRepositories>
|
| 1190 | + <pluginRepository> |
| 1191 | + <id>spring-plugins-release</id> |
| 1192 | + <url>https://repo.spring.io/plugins-release</url> |
| 1193 | + </pluginRepository> |
1221 | 1194 | <pluginRepository>
|
1222 | 1195 | <id>bintray-plugins</id>
|
1223 | 1196 | <name>bintray-plugins</name>
|
|
0 commit comments