From dd966aa5e8199647a1b4c93f381b56ff1842cd70 Mon Sep 17 00:00:00 2001 From: KemalSoysal Date: Mon, 19 May 2025 09:58:34 +0200 Subject: [PATCH 1/2] #42 change project identifier to long version to address the warning about missing paths when adding the subproject --- settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.gradle b/settings.gradle index 316fa06..779c980 100644 --- a/settings.gradle +++ b/settings.gradle @@ -24,7 +24,7 @@ if (target.exists()) { .replaceAll('%LANG%', language) .replaceAll('%TYPE%', docFormat) ) - def projectIdentifier = "${language}:${docFormat}" + def projectIdentifier = ("${f.parentFile.path}" - "${layout.rootDirectory.asFile.path}/").replaceAll("/",":") logger.info "include subproject ${projectIdentifier} in ${parentFilePath}" include(projectIdentifier) project(":${projectIdentifier}").projectDir = new File(parentFilePath) From b418233c5dd7091de152b7ea1fc79d28593b4bf5 Mon Sep 17 00:00:00 2001 From: KemalSoysal Date: Mon, 19 May 2025 10:01:36 +0200 Subject: [PATCH 2/2] #42 adjust sourceDir and sources --- subBuild.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subBuild.gradle b/subBuild.gradle index f043569..9971175 100644 --- a/subBuild.gradle +++ b/subBuild.gradle @@ -87,8 +87,8 @@ task generateHTML ( type: AsciidoctorTask, dependsOn: [copyImages, copyAsciidoc], description: 'use html5 as asciidoc backend') { + sourceDir = file("src") sources { - file("src") include 'arc42-template.adoc' } outputDir = new File( localBuildDir.html ) @@ -101,8 +101,8 @@ task generateDocbook ( type: AsciidoctorTask, dependsOn: [copyImages, copyAsciidoc], description: 'use docbook as asciidoc backend') { + sourceDir = file("src") sources { - file("src") include 'arc42-template.adoc' } if (localBuildDir.docbook) {