diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index fcc6ddf119..afb44d94da 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -36,7 +36,7 @@ jobs:
echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV
- name: Run Antora
run: |
- ./mvnw compile
+ ./mvnw antora
- name: Publish Docs
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11
with:
@@ -44,7 +44,7 @@ jobs:
docs-host: ${{ secrets.DOCS_HOST }}
docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }}
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
- site-path: target/site
+ site-path: spring-data-jpa/target/antora/site
- name: Bust Cloudflare Cache
uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.11
with:
diff --git a/antora-playbook.yml b/antora-playbook.yml
index 69cee8e3cc..1ad35acafd 100644
--- a/antora-playbook.yml
+++ b/antora-playbook.yml
@@ -1,8 +1,10 @@
antora:
extensions:
- '@springio/antora-extensions/partial-build-extension'
+ - require: '@springio/antora-extensions/latest-version-extension'
- require: '@springio/antora-extensions/inject-collector-cache-config-extension'
- '@antora/collector-extension'
+ - './antora/lib/version-fix.js'
- '@antora/atlas-extension'
- require: '@springio/antora-extensions/root-component-extension'
root_component_name: 'data-jpa'
@@ -15,7 +17,14 @@ git:
content:
sources:
- url: https://github.com/spring-projects/spring-data-jpa
- branches: [main]
+ # Refname matching:
+ # https://docs.antora.org/antora/latest/playbook/content-refname-matching/
+ branches: [ main,'({3..9}).+({0..9}).x', '!(3.{0..1}.x)' ]
+ tags: [ '({3..9}).+({0..9}).+({0..9})?(-{RC,M}+({0..9}))', '!(3.{0..1}.+({0..9})?(-{RC,M}+({0..9})))','!(3.2.0-M1)','!(3.2.0-M2)' ]
+ start_path: spring-data-jpa/src/main/antora
+ - url: https://github.com/spring-projects/spring-data-jpa
+ branches: []
+ tags: [ '3.2.0-M2' ]
start_path: src/main/antora
asciidoc:
attributes:
diff --git a/antora/lib/version-fix.js b/antora/lib/version-fix.js
new file mode 100644
index 0000000000..dc0858f812
--- /dev/null
+++ b/antora/lib/version-fix.js
@@ -0,0 +1,18 @@
+'use strict'
+
+/**
+ * The purpose of this extension is to fix invalid metadata saved to either antora.yml or gradle.properties in certain
+ * tags. This invalid metadata prevents Antora from classifying the component versions properly.
+ *
+ * This extension should be listed directly after @antora/collector-extension.
+ */
+ module.exports.register = function () {
+ this.once('contentAggregated', ({ contentAggregate }) => {
+ contentAggregate.forEach((componentVersionBucket) => {
+ if (componentVersionBucket.version === '3.2.0-SNAPSHOT') {
+ componentVersionBucket.version = '3.2.0'
+ componentVersionBucket.prerelease = '-SNAPSHOT'
+ }
+ })
+ })
+ }
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 2ccc534753..5de2018977 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,103 +27,30 @@
2.11.7
1.4.24
spring.data.jpa
-
-
- v18.12.1
- 8.19.2
- 3.2.0-alpha.2
- 1.0.0-alpha.1
- 1.0.0-alpha.3
- 1.0.0-beta.3
- 1.5.0
- 1.0.0-alpha.9
-
+ 0.0.3
- com.github.eirslett
- frontend-maven-plugin
- 1.12.1
-
-
- install node and npm
-
- install-node-and-npm
-
- initialize
-
- ${node.version}
- ${npm.version}
-
-
-
- npm install antora
-
- npm
-
- initialize
-
- install @antora/cli@${antora.version} @antora/site-generator-default@${antora.version} @antora/atlas-extension@${antora-atlas.version} @antora/collector-extension@${antora-collector.version} @asciidoctor/tabs@${asciidoctor-tabs.version} @springio/antora-extensions@${spring-antora-extensions.version} @springio/asciidoctor-extensions@${spring-asciidoctor-extensions.version}
-
-
-
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 3.0.0
-
-
- antora
-
- exec
-
- compile
-
-
- 9d489079e5ec46dbb238909fee5c9c29
- WB1FQYI187
- springdatajpa
-
-
- node/node
-
- node_modules/.bin/antora
- antora-playbook.yml
- --to-dir=target/site
- --stacktrace
-
- ${project.basedir}
-
-
-
-
-
- org.apache.maven.plugins
- maven-clean-plugin
- 3.1.0
+ io.spring.maven.antora
+ antora-maven-plugin
+ ${io.spring.maven.antora-version}
+ true
-
-
- node
- false
-
-
- node_modules
- false
-
-
- build
- false
-
-
+
+
+
+
+
+
+ 9d489079e5ec46dbb238909fee5c9c29
+ WB1FQYI187
+ springdatajpa
+
-