@@ -44,8 +44,8 @@ docConfig {
44
44
}
45
45
46
46
def asciidocHtml = tasks. register(' asciidocHtml' , FbAsciidocHtmlTask ) {
47
- group ' Documentation'
48
- description ' Generate HTML documentation from asciidoc'
47
+ group = ' Documentation'
48
+ description = ' Generate HTML documentation from asciidoc'
49
49
baseDirFollowsSourceFile()
50
50
executionMode = OUT_OF_PROCESS
51
51
attributes ' revnumber' : false , ' stylesdir' : file(stylesDir), ' stylesheet' : ' firebird.css' ,
@@ -73,13 +73,13 @@ def asciidocHtml = tasks.register('asciidocHtml', FbAsciidocHtmlTask) {
73
73
}
74
74
75
75
def asciidocPdf = tasks. register(' asciidocPdf' , FbAsciidocPdfTask ) {
76
- group ' Documentation'
77
- description ' Generate PDF documentation from asciidoc'
76
+ group = ' Documentation'
77
+ description = ' Generate PDF documentation from asciidoc'
78
78
baseDirFollowsSourceFile()
79
79
executionMode = OUT_OF_PROCESS
80
80
attributes ' revnumber' : false , ' source-highlighter' : ' rouge' , ' media' : ' screen' , ' toc' : ' macro' , ' compress' : ' ' ,
81
81
' icon-set' : ' fas' , ' pdf-fontsdir' : " ${ file('src/theme/fonts')} ,GEM_FONTS_DIR"
82
- theme ' firebird'
82
+ theme = ' firebird'
83
83
asciidoctorj {
84
84
modules {
85
85
pdf {
@@ -112,8 +112,8 @@ def copyDocbook5Js = tasks.register('copyDocbook5Js', Copy) {
112
112
113
113
def asciidocDocbook = tasks. register(' asciidocDocbook' , AsciidocToDocbook ) {
114
114
dependsOn copyXsltNgCustomizations, copyDocbook5Css, copyDocbook5Js
115
- group ' Documentation'
116
- description ' Generate Docbook from asciidoc'
115
+ group = ' Documentation'
116
+ description = ' Generate Docbook from asciidoc'
117
117
118
118
baseDirFollowsSourceFile()
119
119
executionMode = OUT_OF_PROCESS
@@ -141,8 +141,9 @@ def asciidocDocbook = tasks.register('asciidocDocbook', AsciidocToDocbook) {
141
141
}
142
142
}
143
143
144
- task docbookHtml (type : DocbookHtml , group : ' documentation' ) {
145
- description ' Generate chunked HTML documentation'
144
+ tasks. register(' docbookHtml' , DocbookHtml ) {
145
+ group = ' documentation'
146
+ description = ' Generate chunked HTML documentation'
146
147
stylesheetBaseName. set(' html' )
147
148
outputTypeName. set(' html' )
148
149
imageExcludes. addAll(
@@ -151,8 +152,9 @@ task docbookHtml(type: DocbookHtml, group: 'documentation') {
151
152
extraFilesToOutput. set(files(' src/docs/firebirddocs.css' ))
152
153
}
153
154
154
- task docbookMonohtml (type : DocbookHtml , group : ' documentation' ) {
155
- description ' Generate single file HTML documentation'
155
+ tasks. register(' docbookMonohtml' , DocbookHtml ) {
156
+ group = ' documentation'
157
+ description = ' Generate single file HTML documentation'
156
158
stylesheetBaseName. set(' monohtml' )
157
159
outputTypeName. set(' monohtml' )
158
160
imageExcludes. addAll(
@@ -164,14 +166,14 @@ task docbookMonohtml(type: DocbookHtml, group: 'documentation') {
164
166
def docbookFoTask = tasks. register(' docbookFo' , DocbookFo )
165
167
def docbookPdfTask = tasks. register(' docbookPdf' , FoTask )
166
168
docbookPdfTask. configure { fo2pdf ->
167
- fo2pdf. group ' documentation'
168
- fo2pdf. description ' Generate PDF documentation from FO file'
169
+ fo2pdf. group = ' documentation'
170
+ fo2pdf. description = ' Generate PDF documentation from FO file'
169
171
fo2pdf. inputFoFile. set(docbookFoTask. get(). mainOutputFile)
170
172
fo2pdf. dependsOn docbookFoTask
171
173
}
172
174
docbookFoTask. configure { docbookFo ->
173
- docbookFo. group ' documentation'
174
- docbookFo. description ' Generate FO documentation'
175
+ docbookFo. group = ' documentation'
176
+ docbookFo. description = ' Generate FO documentation'
175
177
docbookFo. stylesheetBaseName. set(' fo' )
176
178
docbookFo. outputTypeName. set(' fo' )
177
179
docbookFo. imageExcludes. addAll(
@@ -185,16 +187,18 @@ docbookFoTask.configure { docbookFo ->
185
187
docbookFo. configureWith(docbookPdfTask. get())
186
188
}
187
189
188
- task " tt-fo" (type : XsltTask , group : " tools" ) {
189
- description ' Generates fo/titlepage.templates.xsl from fo/titlepage.templates.xml'
190
+ tasks. register(' tt-fo' , XsltTask ) {
191
+ group = ' tools'
192
+ description = ' Generates fo/titlepage.templates.xsl from fo/titlepage.templates.xml'
190
193
inputFile. set(docConfig. styleDir. file(' fo/titlepage.templates.xml' ))
191
194
styleSheetUri. set(' template/titlepage.xsl' )
192
195
stylesheetBase. set(' http://docbook.sourceforge.net/release/xsl/current/' )
193
196
outputFile. set(docConfig. styleDir. file(' fo/titlepage.templates.xsl' ))
194
197
}
195
198
196
- task " tt-html" (type : XsltTask , group : " tools" ) {
197
- description ' Generates html/titlepage.templates.xsl from html/titlepage.templates.xml'
199
+ tasks. register(' tt-html' , XsltTask ) {
200
+ group = ' tools'
201
+ description = ' Generates html/titlepage.templates.xsl from html/titlepage.templates.xml'
198
202
inputFile. set(docConfig. styleDir. file(' html/titlepage.templates.xml' ))
199
203
styleSheetUri. set(' template/titlepage.xsl' )
200
204
stylesheetBase. set(' http://docbook.sourceforge.net/release/xsl/current/' )
0 commit comments