From 06b1b78952cee91653a0f6204b8797e48640a7d6 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 10 May 2020 14:12:31 +0100 Subject: [PATCH] Use shorthand rootDir and buildDir methods Signed-off-by: Graham --- all/build.gradle.kts | 10 +++++----- build.gradle.kts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/all/build.gradle.kts b/all/build.gradle.kts index 29d21f1b..d79f6179 100644 --- a/all/build.gradle.kts +++ b/all/build.gradle.kts @@ -65,14 +65,14 @@ distributions { all { contents { from("$buildDir/AUTHORS") - from("${rootProject.projectDir}/DCO") - from("${rootProject.projectDir}/LICENSE") - from("${rootProject.projectDir}/README.md") - from("${rootProject.projectDir}/etc/config.example.yaml") { + from("$rootDir/DCO") + from("$rootDir/LICENSE") + from("$rootDir/README.md") + from("$rootDir/etc/config.example.yaml") { rename { "config.yaml" } into("etc") } - from("${rootProject.projectDir}/share") { + from("$rootDir/share") { exclude(".*", "*~") into("share") } diff --git a/build.gradle.kts b/build.gradle.kts index 421d77b3..c691ee50 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -40,7 +40,7 @@ allprojects { plugins.withType { tasks.named("run") { standardInput = System.`in` - workingDir = rootProject.projectDir + workingDir = rootDir } } @@ -212,7 +212,7 @@ fun commitHash(): String { } tasks.dokka { - outputDirectory = "${project.buildDir}/kdoc" + outputDirectory = "$buildDir/kdoc" outputFormat = "html" subProjects = subprojects.filter { it.isFree && it.name != "deob-annotations" }.map { it.name }