Skip to content

Commit 32c2bad

Browse files
committed
Update and migrate to asciidoc gradle plugin 3.3.2
Older versions cannot correctly resolve dependencies
1 parent db2fde2 commit 32c2bad

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
classpath 'org.hibernate.build.gradle:hibernate-matrix-testing:3.0.0.Final'
1515
classpath 'org.hibernate.build.gradle:version-injection-plugin:1.0.0'
1616
classpath 'gradle.plugin.com.github.lburgazzoli:gradle-karaf-plugin:0.5.1'
17-
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.7'
17+
classpath 'org.asciidoctor:asciidoctor-gradle-jvm:3.3.2'
1818
classpath 'de.thetaphi:forbiddenapis:3.0.1'
1919
}
2020
}

documentation/documentation.gradle

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import org.apache.tools.ant.filters.ReplaceTokens
2-
import org.asciidoctor.gradle.AsciidoctorTask
2+
import org.asciidoctor.gradle.jvm.AsciidoctorTask
33

44
/*
55
* Hibernate, Relational Persistence for Idiomatic Java
@@ -32,7 +32,7 @@ rootProject.subprojects { subproject ->
3232

3333
apply from: rootProject.file( 'gradle/java-module.gradle' )
3434

35-
apply plugin: 'org.asciidoctor.convert'
35+
apply plugin: 'org.asciidoctor.jvm.convert'
3636

3737
apply plugin: 'hibernate-matrix-testing'
3838

@@ -184,8 +184,6 @@ task renderTopicalGuides(type: AsciidoctorTask, group: 'Documentation') {
184184
description = 'Renders the Topical Guides in HTML format using Asciidoctor.'
185185
sourceDir = file( 'src/main/asciidoc/topical' )
186186
outputDir = new File("$buildDir/asciidoc/topical/html_single")
187-
backends "html5"
188-
separateOutputDirs false
189187
options logDocuments: true
190188
attributes icons: 'font',
191189
experimental: true,
@@ -209,8 +207,6 @@ task renderGettingStartedGuides(type: AsciidoctorTask, group: 'Documentation') {
209207
include 'index.adoc'
210208
}
211209
outputDir = new File("$buildDir/asciidoc/quickstart/html_single")
212-
backends "html5"
213-
separateOutputDirs false
214210
options logDocuments: true
215211
attributes icons: 'font', experimental: true, 'source-highlighter': 'prettify'
216212
}
@@ -239,8 +235,6 @@ task renderUserGuide(type: AsciidoctorTask, group: 'Documentation') {
239235
include 'Hibernate_User_Guide.adoc'
240236
}
241237
outputDir = new File("$buildDir/asciidoc/userguide/html_single")
242-
backends "html5"
243-
separateOutputDirs false
244238
options logDocuments: true
245239
attributes icons: 'font', experimental: true,
246240
'source-highlighter': 'prettify',
@@ -276,8 +270,6 @@ task renderIntegrationGuide(type: AsciidoctorTask, group: 'Documentation') {
276270
include 'Hibernate_Integration_Guide.adoc'
277271
}
278272
outputDir = new File("$buildDir/asciidoc/integrationguide/html_single")
279-
backends "html5"
280-
separateOutputDirs false
281273
options logDocuments: true
282274
attributes icons: 'font',
283275
experimental: true,
@@ -324,3 +316,10 @@ buildDocsForPublishing.dependsOn renderIntegrationGuide
324316

325317
checkstyleMain.exclude '**/org/hibernate/userguide/model/*'
326318

319+
tasks.withType(AsciidoctorTask).configureEach {
320+
baseDirFollowsSourceDir()
321+
outputOptions {
322+
separateOutputDirs = false
323+
backends 'html5'
324+
}
325+
}

0 commit comments

Comments
 (0)