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
  • Loading branch information
abelsromero committed Jan 11, 2024
1 parent 43d6ed4 commit 254546d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 254546d

Please sign in to comment.