Use shorthand rootDir and buildDir methods

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent 18a6736b68
commit 06b1b78952
  1. 10
      all/build.gradle.kts
  2. 4
      build.gradle.kts

@ -65,14 +65,14 @@ distributions {
all { all {
contents { contents {
from("$buildDir/AUTHORS") from("$buildDir/AUTHORS")
from("${rootProject.projectDir}/DCO") from("$rootDir/DCO")
from("${rootProject.projectDir}/LICENSE") from("$rootDir/LICENSE")
from("${rootProject.projectDir}/README.md") from("$rootDir/README.md")
from("${rootProject.projectDir}/etc/config.example.yaml") { from("$rootDir/etc/config.example.yaml") {
rename { "config.yaml" } rename { "config.yaml" }
into("etc") into("etc")
} }
from("${rootProject.projectDir}/share") { from("$rootDir/share") {
exclude(".*", "*~") exclude(".*", "*~")
into("share") into("share")
} }

@ -40,7 +40,7 @@ allprojects {
plugins.withType<ApplicationPlugin> { plugins.withType<ApplicationPlugin> {
tasks.named<JavaExec>("run") { tasks.named<JavaExec>("run") {
standardInput = System.`in` standardInput = System.`in`
workingDir = rootProject.projectDir workingDir = rootDir
} }
} }
@ -212,7 +212,7 @@ fun commitHash(): String {
} }
tasks.dokka { tasks.dokka {
outputDirectory = "${project.buildDir}/kdoc" outputDirectory = "$buildDir/kdoc"
outputFormat = "html" outputFormat = "html"
subProjects = subprojects.filter { it.isFree && it.name != "deob-annotations" }.map { it.name } subProjects = subprojects.filter { it.isFree && it.name != "deob-annotations" }.map { it.name }

Loading…
Cancel
Save