Add dependency management for Antora Maven Plugin.

Closes #2331
This commit is contained in:
Mark Paluch
2024-07-30 15:32:14 +02:00
parent d484e8a4db
commit e502fb6522

View File

@@ -132,6 +132,7 @@
<spring>6.2.0-M6</spring>
<antora.playbook>src/main/antora/antora-playbook.yml</antora.playbook>
<spring-antora>0.0.3</spring-antora>
<maven-antora>1.0.0-alpha.4</maven-antora>
<spring-asciidoctor-backends.version>0.0.7</spring-asciidoctor-backends.version>
<spring-hateoas>2.3.1</spring-hateoas>
<spring-plugin>3.0.0</spring-plugin>
@@ -371,6 +372,22 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.antora</groupId>
<artifactId>antora-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<playbook>${antora.playbook}</playbook>
</configuration>
<executions>
<execution>
<goals>
<goal>antora</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
@@ -497,6 +514,21 @@
</goals>
</execution>
<execution>
<id>copy-javadoc</id>
<phase>package</phase>
<configuration>
<target>
<copy todir="${project.root}/target/antora/modules/ROOT/assets/attachments/api/java">
<fileset dir="${project.root}/target/site/apidocs" erroronmissingdir="true" />
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>rename-reference-docs</id>
<phase>prepare-package</phase>
@@ -1074,6 +1106,12 @@
<version>${spring-antora}</version>
</plugin>
<plugin>
<groupId>org.antora</groupId>
<artifactId>antora-maven-plugin</artifactId>
<version>${maven-antora}</version>
</plugin>
<plugin>
<groupId>io.spring.maven.antora</groupId>
<artifactId>antora-component-version-maven-plugin</artifactId>