Skip to content

Commit

Permalink
Fix version catalog publication
Browse files Browse the repository at this point in the history
  • Loading branch information
lamba92 committed Jul 21, 2024
1 parent 496c607 commit 8e32635
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions buildSrc/src/main/kotlin/Things.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import java.nio.file.Path
import org.gradle.api.file.RegularFile

val RegularFile.asPath: Path
get() = asFile.toPath()
6 changes: 5 additions & 1 deletion version-catalog/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import kotlin.io.path.createDirectories
import kotlin.io.path.writeText

plugins {
convention
`version-catalog`
Expand All @@ -10,7 +13,8 @@ val replaceVersion by tasks.registering {
inputs.file(input)
doLast {
output.get()
.asFile
.asPath
.apply { parent.createDirectories() }
.writeText(
input
.readText()
Expand Down

0 comments on commit 8e32635

Please sign in to comment.