From ae97308414f06d2be94aac44c1a0aec7f41d03f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Tue, 4 Jun 2024 15:14:05 +0200 Subject: [PATCH] Move Hibernate-related Maven properties to root POM ... and automate version parsing for the documentation. To avoid having to repeat the same version in various places, because that leads to Yoann just forgetting about it and making a mess. --- bom/application/pom.xml | 14 ++--------- docs/pom.xml | 32 +++++++++++++++++++++---- docs/src/main/asciidoc/_attributes.adoc | 10 ++++---- pom.xml | 9 +++++++ 4 files changed, 45 insertions(+), 20 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index ebc5797f2beb2..ee8748ae3c169 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -97,17 +97,8 @@ 3.14.0 1.17.0 1.7.0 - - 6.5.2.Final - 1.14.15 - 6.0.6.Final - 2.3.1.Final - 8.0.1.Final - - 7.1.1.Final + 7.0.1.Final 2.4 8.0.0.Final @@ -186,7 +177,6 @@ 2.1.SP1 5.12.0 5.8.0 - 4.13.0 2.0.3.Final 24.0.4 1.15.1 diff --git a/docs/pom.xml b/docs/pom.xml index 622f79f6cb4c0..6ee804140ed8e 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -37,10 +37,6 @@ ${project.basedir}/../target/asciidoc/generated ${generated-dir}/examples docker.io/jdkato/vale:v2.15.5 - - - 6.5 - 7.1 Quarkus - Documentation @@ -3016,6 +3012,34 @@ + + org.codehaus.mojo + build-helper-maven-plugin + + + parse-version-hibernate-orm + + parse-version + + validate + + hibernate-orm + ${hibernate-orm.version} + + + + parse-version-hibernate-search + + parse-version + + validate + + hibernate-search + ${hibernate-search.version} + + + + maven-resources-plugin diff --git a/docs/src/main/asciidoc/_attributes.adoc b/docs/src/main/asciidoc/_attributes.adoc index b4b1fa6683417..4eed987d1446a 100644 --- a/docs/src/main/asciidoc/_attributes.adoc +++ b/docs/src/main/asciidoc/_attributes.adoc @@ -25,8 +25,10 @@ :grpc-version: ${grpc.version} :protoc-version: ${protoc.version} :gcf-invoker-version: ${gcf-invoker.version} -:hibernate-orm-version: ${hibernate-orm.version-for-documentation} -:hibernate-search-version: ${hibernate-search.version-for-documentation} +// Cannot simply use the name 'hibernate-*-version' here as it somehow gets +// overridden to the full version, at least when building locally. +:hibernate-orm-version-major-minor: ${hibernate-orm.majorVersion}.${hibernate-orm.minorVersion} +:hibernate-search-version-major-minor: ${hibernate-search.majorVersion}.${hibernate-search.minorVersion} // . :quarkus-home-url: ${quarkus-home-url} :quarkus-org-url: https://github.com/quarkusio @@ -49,8 +51,8 @@ :quickstarts-blob-url: ${quickstarts-base-url}/blob/main :quickstarts-tree-url: ${quickstarts-base-url}/tree/main // . -:hibernate-orm-docs-url: https://docs.jboss.org/hibernate/orm/{hibernate-orm-version}/userguide/html_single/Hibernate_User_Guide.html -:hibernate-search-docs-url: https://docs.jboss.org/hibernate/search/{hibernate-search-version}/reference/en-US/html_single/ +:hibernate-orm-docs-url: https://docs.jboss.org/hibernate/orm/{hibernate-orm-version-major-minor}/userguide/html_single/Hibernate_User_Guide.html +:hibernate-search-docs-url: https://docs.jboss.org/hibernate/search/{hibernate-search-version-major-minor}/reference/en-US/html_single/ // . :amazon-services-guide: https://quarkiverse.github.io/quarkiverse-docs/quarkus-amazon-services/dev/index.html :config-consul-guide: https://quarkiverse.github.io/quarkiverse-docs/quarkus-config-extensions/dev/consul.html diff --git a/pom.xml b/pom.xml index e5aa78651d14b..4091211861415 100644 --- a/pom.xml +++ b/pom.xml @@ -63,9 +63,18 @@ 9.0.7 + 0.8.12 6.13.0 5.4.0 + 6.5.2.Final + 4.13.0 + 1.14.15 + 6.0.6.Final + 2.3.1.Final + 8.0.1.Final + 7.1.1.Final 1.64.0