Skip to content

Commit

Permalink
Use official Antora Maven Plugin
Browse files Browse the repository at this point in the history
- Use the latest Antora Maven Plugin
- Switch to package.json (this allows dependabot to update the versions)
- Also works around asciidoctor/asciidoctor.js#1732 by
  by forcing the asciidoctor.js version to previous release
  • Loading branch information
rwinch authored and fmbenhassine committed May 24, 2024
1 parent 5213210 commit f09c974
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ src/ant/.ant-targets-upload-dist.xml
node_modules
node/
package-lock.json
package.json
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"//": "Until it is fixed, force asciidoctor/core version https://github.com/asciidoctor/asciidoctor.js/issues/1732",
"dependencies": {
"antora": "3.2.0-alpha.4",
"@asciidoctor/core": "2.2.6",
"@antora/atlas-extension": "1.0.0-alpha.2",
"@antora/collector-extension": "1.0.0-alpha.3",
"@asciidoctor/tabs": "1.0.0-beta.6",
"@springio/antora-extensions": "1.11.1",
"@springio/asciidoctor-extensions": "1.0.0-alpha.10"
}
}
14 changes: 4 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,23 @@
</issueManagement>

<properties>
<io.spring.maven.antora-version>0.0.4</io.spring.maven.antora-version>
<maven.antora-version>1.0.0-alpha.4</maven.antora-version>
</properties>

<build>
<plugins>

<plugin>
<groupId>io.spring.maven.antora</groupId>
<groupId>org.antora</groupId>
<artifactId>antora-maven-plugin</artifactId>
<version>${io.spring.maven.antora-version}</version>
<version>${maven.antora-version}</version>
<extensions>true</extensions>
<configuration>
<options>
<option>--to-dir=target/antora/site</option>
<option>--stacktrace</option>
<option>--fetch</option>
</options>
<packages>
<package>@antora/[email protected]</package>
<package>@antora/[email protected]</package>
<package>@asciidoctor/[email protected]</package>
<package>@springio/[email protected]</package>
<package>@springio/[email protected]</package>
</packages>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit f09c974

Please sign in to comment.