This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git
The following commit(s) were added to refs/heads/master by this push:
new cb787eef avoid gradle warnings
cb787eef is described below
commit cb787eef1cca61c4ab6517299e0c504369856401
Author: Paul King <[email protected]>
AuthorDate: Wed Feb 12 23:25:29 2025 +1000
avoid gradle warnings
---
doc/site/site.gradle | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/doc/site/site.gradle b/doc/site/site.gradle
index b6ef078d..887689a1 100644
--- a/doc/site/site.gradle
+++ b/doc/site/site.gradle
@@ -73,9 +73,11 @@ tasks.generateIndex {
tasks.register("replaceAnalyticsWithMatomo") {
group = "website"
description = "Replace Google Analytics with Matomo in manuals"
+ def rootDir = project.rootDir
+ def projectDir = project.projectDir
dependsOn("generateResources")
doLast {
- File baseDir =
file("${project.projectDir}/src/main/resources/public/manual")
+ File baseDir = file("${projectDir}/src/main/resources/public/manual")
baseDir.eachFileRecurse(groovy.io.FileType.FILES) { file ->
if (file.name == 'index.html') {
String html = file.text
@@ -98,7 +100,7 @@ tasks.register("replaceAnalyticsWithMatomo") {
</script>
'''
- String matomo = new
File("${project.rootDir}/doc/manual/src/docs/asciidoc/docinfo.html").text
+ String matomo = new
File("${rootDir}/doc/manual/src/docs/asciidoc/docinfo.html").text
html = html.replace(ga, matomo)
List<String> fontAwesomeLinks = [
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css',