From 4b765b87a0ddc63f31dc8e01188c092220497d05 Mon Sep 17 00:00:00 2001 From: Abel Salgado Romero Date: Thu, 11 Jan 2024 18:55:35 +0100 Subject: [PATCH] Use Gradle resolutionStrategy to align asciidoctor plugin versions * All plugins (convert, pdf, etc) are released together and compatibility between versions is not guaranteed. So, this PR uses 'resolutionStrategy' to assign the same version to all plugins ensuring they are all aligned * Bump asciidoctor gradle plugins to 4.0.1 --- settings.gradle | 9 +++++++++ spring-cloud-app-broker-docs/build.gradle | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/settings.gradle b/settings.gradle index d5e75a39..33cd22c9 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,7 +1,16 @@ pluginManagement { + resolutionStrategy { + eachPlugin { + if (requested.id.namespace?.startsWith('org.asciidoctor.jvm')) { + useVersion("4.0.1") + } + } + } plugins { id 'io.spring.nohttp' version "0.0.11" id 'org.springframework.boot' version "2.7.18" + id 'org.asciidoctor.jvm.pdf' + id 'org.asciidoctor.jvm.convert' } repositories { gradlePluginPortal() diff --git a/spring-cloud-app-broker-docs/build.gradle b/spring-cloud-app-broker-docs/build.gradle index c88bd766..fcfba311 100644 --- a/spring-cloud-app-broker-docs/build.gradle +++ b/spring-cloud-app-broker-docs/build.gradle @@ -18,8 +18,8 @@ import org.springframework.boot.gradle.plugin.SpringBootPlugin plugins { id 'org.springframework.boot' apply false - id 'org.asciidoctor.jvm.pdf' version '3.3.2' - id 'org.asciidoctor.jvm.convert' version '3.3.2' + id 'org.asciidoctor.jvm.convert' + id 'org.asciidoctor.jvm.pdf' } description = "Spring Cloud App Broker Documentation"