From 99a28a842c86bb08f374793b35351f7061589f54 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 10 May 2020 14:14:49 +0100 Subject: [PATCH] Add dependency on the .git directory to the dokka task It includes the current HEAD so it needs to be regenerated if the Git repository changes. Signed-off-by: Graham --- build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index c691ee503f..2d3e24f2c0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -212,6 +212,8 @@ fun commitHash(): String { } tasks.dokka { + inputs.dir("$rootDir/.git") + outputDirectory = "$buildDir/kdoc" outputFormat = "html"