From 132a94d42aff27a489067dfcd28c4ef62e16bc22 Mon Sep 17 00:00:00 2001 From: altro3 Date: Fri, 10 Nov 2023 20:17:31 +0700 Subject: [PATCH] Fixed sourceDir in gradle tasks --- .../io.micronaut.build.internal.convention-quality.gradle | 2 +- core/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/groovy/io.micronaut.build.internal.convention-quality.gradle b/buildSrc/src/main/groovy/io.micronaut.build.internal.convention-quality.gradle index 59df71c518..29cd405486 100644 --- a/buildSrc/src/main/groovy/io.micronaut.build.internal.convention-quality.gradle +++ b/buildSrc/src/main/groovy/io.micronaut.build.internal.convention-quality.gradle @@ -5,7 +5,7 @@ plugins { } tasks.named("htmlSanityCheck") { - sourceDir = file("${rootProject.layout.buildDirectory.asFile.get()}/docs/guide/") + sourceDir = rootProject.layout.buildDirectory.dir("docs/guide").get().asFile sourceDocuments = fileTree(sourceDir) { include "index.html" } diff --git a/core/build.gradle b/core/build.gradle index 41a3e597bc..c01121ddef 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -31,7 +31,7 @@ spotless { } def versionInfo = tasks.register("micronautVersionInfo", WriteProperties) { - destinationFile = file("${layout.buildDirectory.asFile.get()}/resources/version/micronaut-version.properties") + destinationFile = layout.buildDirectory.file("resources/version/micronaut-version.properties") property 'micronaut.version', projectVersion } tasks.named("processResources") {