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 spikymonkey committed Mar 5, 2024
1 parent 5e0344b commit fa00eb9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
4 changes: 2 additions & 2 deletions 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.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"
Expand Down

0 comments on commit fa00eb9

Please sign in to comment.