@@ -8,13 +8,16 @@ buildscript {
8
8
}
9
9
dependencies {
10
10
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'
14
11
classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
15
12
}
16
13
}
17
14
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
+
18
21
version project. file(" ../version.txt" ). text. trim()
19
22
group " org.grails.plugins"
20
23
@@ -23,9 +26,10 @@ apply plugin: "idea"
23
26
apply plugin : " org.grails.grails-plugin"
24
27
apply plugin : " org.grails.grails-plugin-publish"
25
28
apply plugin : " org.grails.grails-gsp"
26
- apply plugin : " org.asciidoctor.convert"
27
29
apply plugin : ' com.jfrog.bintray'
28
30
31
+
32
+
29
33
// Used for publishing to central repository, remove if not needed
30
34
// apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
31
35
// apply from:'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
@@ -66,12 +70,6 @@ dependencies {
66
70
67
71
bootJar. enabled = false
68
72
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
-
75
73
static String buildDate () {
76
74
def df = new SimpleDateFormat (" yyyy-MM-dd" )
77
75
df. setTimeZone(TimeZone . getTimeZone(" UTC" ))
@@ -95,13 +93,21 @@ grailsPublish {
95
93
}
96
94
97
95
asciidoctor {
98
- separateOutputDirs = false
96
+ logDocuments true
97
+ baseDirFollowsSourceDir()
98
+
99
99
sourceDir = file(' src/docs' )
100
100
sources {
101
101
include ' index.adoc'
102
102
}
103
+
103
104
outputDir new File (buildDir, ' docs' )
104
- backends ' html5' , ' pdf' , ' epub3'
105
+
106
+ outputOptions {
107
+ backends = [' html5' , ' pdf' , ' epub3' ]
108
+ separateOutputDirs = false
109
+ }
110
+
105
111
attributes ' experimental' : ' true' ,
106
112
' source-highlighter' : ' coderay' ,
107
113
' compat-mode' : ' true' ,
0 commit comments