From 254546dfb33ef8b3092568733585711a79956e48 Mon Sep 17 00:00:00 2001 From: Abel Salgado Romero Date: Thu, 11 Jan 2024 09:41:44 +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 --- settings.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/settings.gradle b/settings.gradle index fab4e3c4..bab55dc4 100644 --- a/settings.gradle +++ b/settings.gradle @@ -15,11 +15,18 @@ */ pluginManagement { + resolutionStrategy { + eachPlugin { + if (requested.id.namespace?.startsWith('org.asciidoctor.jvm')) { + useVersion("4.0.1") + } + } + } plugins { id "org.springframework.boot" version "2.6.15" id "io.spring.nohttp" version "0.0.11" - id 'org.asciidoctor.jvm.pdf' version '3.3.2' - id 'org.asciidoctor.jvm.convert' version '4.0.1' + id 'org.asciidoctor.jvm.convert' + id 'org.asciidoctor.jvm.pdf' } repositories { gradlePluginPortal()