1
1
import org.apache.tools.ant.filters.ReplaceTokens
2
- import org.asciidoctor.gradle.AsciidoctorTask
2
+ import org.asciidoctor.gradle.jvm. AsciidoctorTask
3
3
4
4
/*
5
5
* Hibernate, Relational Persistence for Idiomatic Java
@@ -28,7 +28,7 @@ rootProject.subprojects { subproject ->
28
28
29
29
apply from : rootProject. file( ' gradle/java-module.gradle' )
30
30
31
- apply plugin : ' org.asciidoctor.convert'
31
+ apply plugin : ' org.asciidoctor.jvm. convert'
32
32
33
33
apply plugin : ' hibernate-matrix-testing'
34
34
@@ -179,8 +179,6 @@ task renderTopicalGuides(type: AsciidoctorTask, group: 'Documentation') {
179
179
description = ' Renders the Topical Guides in HTML format using Asciidoctor.'
180
180
sourceDir = file( ' src/main/asciidoc/topical' )
181
181
outputDir = new File (" $buildDir /asciidoc/topical/html_single" )
182
- backends " html5"
183
- separateOutputDirs false
184
182
options logDocuments : true
185
183
attributes icons : ' font' ,
186
184
experimental : true ,
@@ -204,8 +202,6 @@ task renderGettingStartedGuides(type: AsciidoctorTask, group: 'Documentation') {
204
202
include ' index.adoc'
205
203
}
206
204
outputDir = new File (" $buildDir /asciidoc/quickstart/html_single" )
207
- backends " html5"
208
- separateOutputDirs false
209
205
options logDocuments : true
210
206
attributes icons : ' font' , experimental : true , ' source-highlighter' : ' prettify'
211
207
}
@@ -234,8 +230,6 @@ task renderUserGuide(type: AsciidoctorTask, group: 'Documentation') {
234
230
include ' Hibernate_User_Guide.adoc'
235
231
}
236
232
outputDir = new File (" $buildDir /asciidoc/userguide/html_single" )
237
- backends " html5"
238
- separateOutputDirs false
239
233
options logDocuments : true
240
234
attributes icons : ' font' , experimental : true ,
241
235
' source-highlighter' : ' prettify' ,
@@ -270,8 +264,6 @@ task renderIntegrationGuide(type: AsciidoctorTask, group: 'Documentation') {
270
264
include ' Hibernate_Integration_Guide.adoc'
271
265
}
272
266
outputDir = new File (" $buildDir /asciidoc/integrationguide/html_single" )
273
- backends " html5"
274
- separateOutputDirs false
275
267
options logDocuments : true
276
268
attributes icons : ' font' ,
277
269
experimental : true ,
@@ -318,3 +310,10 @@ buildDocsForPublishing.dependsOn renderIntegrationGuide
318
310
319
311
checkstyleMain. exclude ' **/org/hibernate/userguide/model/*'
320
312
313
+ tasks. withType(AsciidoctorTask ). configureEach {
314
+ baseDirFollowsSourceDir()
315
+ outputOptions {
316
+ separateOutputDirs = false
317
+ backends ' html5'
318
+ }
319
+ }
0 commit comments