11import  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
3333apply from : rootProject. file( ' gradle/java-module.gradle'   )
3434
35- apply plugin : ' org.asciidoctor.convert' 
35+ apply plugin : ' org.asciidoctor.jvm. convert' 
3636
3737apply 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
325317checkstyleMain. 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