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
This commit is contained in:
committed by
Alberto C. Ríos
parent
8e197c994b
commit
f4c6ca563c
@@ -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.6.15"
|
||||
id 'org.asciidoctor.jvm.pdf'
|
||||
id 'org.asciidoctor.jvm.convert'
|
||||
}
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
|
||||
@@ -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"
|
||||
@@ -53,6 +53,7 @@ task prepareAsciidocBuild(type: Sync) {
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
dependsOn prepareAsciidocBuild
|
||||
baseDirFollowsSourceFile()
|
||||
|
||||
asciidoctorj {
|
||||
|
||||
Reference in New Issue
Block a user