Skip to content

Commit

Permalink
fix gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
ManApart committed Jun 23, 2024
1 parent df2d49e commit 303725c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fun writeCommit(){
commandLine = "git rev-parse HEAD".split(" ")
standardOutput = byteOut
}
File("./src/main/resources/commit.txt").writeText(String(byteOut.toByteArray()))
File("./src/main/resources/commit.txt").also { it.parentFile.mkdirs() }.writeText(String(byteOut.toByteArray()))
}

tasks.withType<Jar> {
Expand All @@ -59,4 +59,4 @@ tasks.withType<Jar> {
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}
}

0 comments on commit 303725c

Please sign in to comment.