Skip to content

Commit

Permalink
Use Gradle resolutionStrategy to align asciidoctor plugin versions
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
abelsromero authored and Albertoimpl committed Mar 7, 2024
1 parent 2a645b8 commit 0b0ecb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +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 "3.1.5"
id 'org.asciidoctor.jvm.pdf' version '3.3.2'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'org.asciidoctor.jvm.pdf'
id 'org.asciidoctor.jvm.convert'
}
repositories {
gradlePluginPortal()
Expand Down
2 changes: 1 addition & 1 deletion spring-cloud-app-broker-docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import org.springframework.boot.gradle.plugin.SpringBootPlugin

plugins {
id 'org.springframework.boot' apply false
id 'org.asciidoctor.jvm.convert'
id 'org.asciidoctor.jvm.pdf'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
}

description = "Spring Cloud App Broker Documentation"
Expand Down

0 comments on commit 0b0ecb7

Please sign in to comment.