@@ -8,13 +8,16 @@ buildscript {
88 }
99 dependencies {
1010 classpath " org.grails:grails-gradle-plugin:$grailsVersion "
11- classpath ' org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
12- classpath ' org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.6'
13- classpath ' org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11'
1411 classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
1512 }
1613}
1714
15+ plugins {
16+ id ' org.asciidoctor.jvm.convert' version ' 3.2.0'
17+ id " org.asciidoctor.jvm.pdf" version " 3.2.0"
18+ id " org.asciidoctor.jvm.epub" version " 3.2.0"
19+ }
20+
1821version project. file(" ../version.txt" ). text. trim()
1922group " org.grails.plugins"
2023
@@ -23,9 +26,10 @@ apply plugin: "idea"
2326apply plugin : " org.grails.grails-plugin"
2427apply plugin : " org.grails.grails-plugin-publish"
2528apply plugin : " org.grails.grails-gsp"
26- apply plugin : " org.asciidoctor.convert"
2729apply plugin : ' com.jfrog.bintray'
2830
31+
32+
2933// Used for publishing to central repository, remove if not needed
3034// apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
3135// apply from:'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
@@ -66,12 +70,6 @@ dependencies {
6670
6771bootJar. enabled = false
6872
69- // Needed for org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.6
70- // See https://github.com/asciidoctor/asciidoctorj/issues/415
71- asciidoctorj {
72- version = ' 1.5.4'
73- }
74-
7573static String buildDate () {
7674 def df = new SimpleDateFormat (" yyyy-MM-dd" )
7775 df. setTimeZone(TimeZone . getTimeZone(" UTC" ))
@@ -95,13 +93,21 @@ grailsPublish {
9593}
9694
9795asciidoctor {
98- separateOutputDirs = false
96+ logDocuments true
97+ baseDirFollowsSourceDir()
98+
9999 sourceDir = file(' src/docs' )
100100 sources {
101101 include ' index.adoc'
102102 }
103+
103104 outputDir new File (buildDir, ' docs' )
104- backends ' html5' , ' pdf' , ' epub3'
105+
106+ outputOptions {
107+ backends = [' html5' , ' pdf' , ' epub3' ]
108+ separateOutputDirs = false
109+ }
110+
105111 attributes ' experimental' : ' true' ,
106112 ' source-highlighter' : ' coderay' ,
107113 ' compat-mode' : ' true' ,
0 commit comments