Skip to content

Commit de99f74

Browse files
committed
Upgrade Gradle Wrapper to 8.13, address deprecation warnings
1 parent e1d72f0 commit de99f74

File tree

5 files changed

+29
-26
lines changed

5 files changed

+29
-26
lines changed

build.gradle

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ docConfig {
4444
}
4545

4646
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'
4949
baseDirFollowsSourceFile()
5050
executionMode = OUT_OF_PROCESS
5151
attributes 'revnumber': false, 'stylesdir': file(stylesDir), 'stylesheet': 'firebird.css',
@@ -73,13 +73,13 @@ def asciidocHtml = tasks.register('asciidocHtml', FbAsciidocHtmlTask) {
7373
}
7474

7575
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'
7878
baseDirFollowsSourceFile()
7979
executionMode = OUT_OF_PROCESS
8080
attributes 'revnumber': false, 'source-highlighter': 'rouge', 'media': 'screen', 'toc': 'macro', 'compress': '',
8181
'icon-set': 'fas', 'pdf-fontsdir': "${file('src/theme/fonts')},GEM_FONTS_DIR"
82-
theme 'firebird'
82+
theme = 'firebird'
8383
asciidoctorj {
8484
modules {
8585
pdf {
@@ -112,8 +112,8 @@ def copyDocbook5Js = tasks.register('copyDocbook5Js', Copy) {
112112

113113
def asciidocDocbook = tasks.register('asciidocDocbook', AsciidocToDocbook) {
114114
dependsOn copyXsltNgCustomizations, copyDocbook5Css, copyDocbook5Js
115-
group 'Documentation'
116-
description 'Generate Docbook from asciidoc'
115+
group = 'Documentation'
116+
description = 'Generate Docbook from asciidoc'
117117

118118
baseDirFollowsSourceFile()
119119
executionMode = OUT_OF_PROCESS
@@ -141,8 +141,9 @@ def asciidocDocbook = tasks.register('asciidocDocbook', AsciidocToDocbook) {
141141
}
142142
}
143143

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'
146147
stylesheetBaseName.set('html')
147148
outputTypeName.set('html')
148149
imageExcludes.addAll(
@@ -151,8 +152,9 @@ task docbookHtml(type: DocbookHtml, group: 'documentation') {
151152
extraFilesToOutput.set(files('src/docs/firebirddocs.css'))
152153
}
153154

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'
156158
stylesheetBaseName.set('monohtml')
157159
outputTypeName.set('monohtml')
158160
imageExcludes.addAll(
@@ -164,14 +166,14 @@ task docbookMonohtml(type: DocbookHtml, group: 'documentation') {
164166
def docbookFoTask = tasks.register('docbookFo', DocbookFo)
165167
def docbookPdfTask = tasks.register('docbookPdf', FoTask)
166168
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'
169171
fo2pdf.inputFoFile.set(docbookFoTask.get().mainOutputFile)
170172
fo2pdf.dependsOn docbookFoTask
171173
}
172174
docbookFoTask.configure { docbookFo ->
173-
docbookFo.group 'documentation'
174-
docbookFo.description 'Generate FO documentation'
175+
docbookFo.group = 'documentation'
176+
docbookFo.description = 'Generate FO documentation'
175177
docbookFo.stylesheetBaseName.set('fo')
176178
docbookFo.outputTypeName.set('fo')
177179
docbookFo.imageExcludes.addAll(
@@ -185,16 +187,18 @@ docbookFoTask.configure { docbookFo ->
185187
docbookFo.configureWith(docbookPdfTask.get())
186188
}
187189

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'
190193
inputFile.set(docConfig.styleDir.file('fo/titlepage.templates.xml'))
191194
styleSheetUri.set('template/titlepage.xsl')
192195
stylesheetBase.set('http://docbook.sourceforge.net/release/xsl/current/')
193196
outputFile.set(docConfig.styleDir.file('fo/titlepage.templates.xsl'))
194197
}
195198

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'
198202
inputFile.set(docConfig.styleDir.file('html/titlepage.templates.xml'))
199203
styleSheetUri.set('template/titlepage.xsl')
200204
stylesheetBase.set('http://docbook.sourceforge.net/release/xsl/current/')

buildSrc/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ repositories {
1616
mavenCentral()
1717
// To resolve jai-code and jai-core
1818
maven {
19-
url 'https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/'
19+
url = 'https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/'
2020
}
2121
// 'repository' for getting docbook xsd
2222
ivy {
23-
url 'https://docbook.org/xml'
23+
url = 'https://docbook.org/xml'
2424
patternLayout {
2525
artifact '[revision]/[module]-[revision].[ext]'
2626
}
@@ -33,7 +33,7 @@ repositories {
3333
}
3434
// 'repository' for getting additional dependencies not available from Maven
3535
ivy {
36-
url 'https://www.firebirdsql.org/doclibs/'
36+
url = 'https://www.firebirdsql.org/doclibs/'
3737
patternLayout {
3838
artifact '[module].[ext]'
3939
}

gradle/wrapper/gradle-wrapper.jar

122 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum
@@ -206,7 +205,7 @@ fi
206205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207206

208207
# Collect all arguments for the java command:
209-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210209
# and any embedded shellness will be escaped.
211210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212211
# treated as '${Hostname}' itself on the command line.

0 commit comments

Comments
 (0)