Skip to content

Commit

Permalink
Fixed sourceDir in gradle tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
altro3 committed Nov 10, 2023
1 parent 7e63e6f commit 132a94d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 132a94d

Please sign in to comment.