From e9f516580eaf6d59498f89f0bcfd3ce538ab4a23 Mon Sep 17 00:00:00 2001 From: Andrei Isvoran Date: Thu, 29 Feb 2024 17:48:02 +0200 Subject: [PATCH] draft --- .gitlab-ci.yml | 5 ++--- .../build.gradle.kts | 20 +------------------ 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0894606..b809d540 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,9 +28,8 @@ generateJavaDoc: - dind script: - echo "Generating Javadoc..." - - gradle generateJavaDoc - - find /builds/redactmanager/redaction-service -name "javadoc" + - gradle generateJavaDoc -PjavadocDestinationDir="/builds/redactmanager/redaction-service/javadoc" artifacts: paths: - - docs/javadoc/ + - /builds/redactmanager/redaction-service/javadoc rules: \ No newline at end of file diff --git a/redaction-service-v1/redaction-service-server-v1/build.gradle.kts b/redaction-service-v1/redaction-service-server-v1/build.gradle.kts index 226629f9..c1976994 100644 --- a/redaction-service-v1/redaction-service-server-v1/build.gradle.kts +++ b/redaction-service-v1/redaction-service-server-v1/build.gradle.kts @@ -140,23 +140,5 @@ tasks.register("generateJavaDoc", Javadoc::class) { source = fileTree("${buildDir}/generated/sources/delombok/java/main") { include(droolsImports) } - destinationDir = file("docs/javadoc") - - doLast { - // Get the docs/javadoc directory as a File object - val javadocDir = file("docs/javadoc/") - - // Print the absolute path of the directory - println("The absolute path of the docs/javadoc directory is: ${javadocDir.absolutePath}") - - // Check if the directory exists and list its contents - if (javadocDir.exists()) { - println("Listing contents of ${javadocDir.absolutePath}:") - javadocDir.listFiles()?.forEach { file -> - println(file.absolutePath) - } - } else { - println("The directory does not exist.") - } - } + destinationDir = file(project.findProperty("javadocDestinationDir")?.toString() ?: "") }