diff --git a/build-logic/gradm/gradm.yml b/build-logic/gradm/gradm.yml index 93fe3e6..0d4d97f 100644 --- a/build-logic/gradm/gradm.yml +++ b/build-logic/gradm/gradm.yml @@ -3,7 +3,7 @@ versions: delusion: "0.5.0" elucidator: "0.13.0" kotlin: "1.9.21" - kotlinpoet: "1.14.2" + kotlinpoet: "1.15.2" plugins: gradle.enterprise: "3.15.1" spotless: "6.23.2" diff --git a/elucidator-generator/build.gradle.kts b/elucidator-generator/build.gradle.kts index 73b4582..e336750 100644 --- a/elucidator-generator/build.gradle.kts +++ b/elucidator-generator/build.gradle.kts @@ -23,7 +23,7 @@ dependencies { tasks.run { dependsOn(":spotlessApply") args = listOf( - projectDir.resolveSibling("kotlinpoet/kotlinpoet/src/main").absolutePath, + projectDir.resolveSibling("kotlinpoet/kotlinpoet/src/commonMain").absolutePath, projectDir.resolveSibling("elucidator/build/generated/kotlin").absolutePath, ) } diff --git a/elucidator/src/main/kotlin/me/omico/elucidator/KtFile.kt b/elucidator/src/main/kotlin/me/omico/elucidator/KtFile.kt index e407d34..4f30c61 100644 --- a/elucidator/src/main/kotlin/me/omico/elucidator/KtFile.kt +++ b/elucidator/src/main/kotlin/me/omico/elucidator/KtFile.kt @@ -49,4 +49,4 @@ public fun KtFileScope.addNewline() { builder.addStatement("") } -public fun KtFileScope.writeTo(path: Path): Unit = build().writeTo(path) +public fun KtFileScope.writeTo(path: Path): Path = build().writeTo(path) diff --git a/kotlinpoet b/kotlinpoet index cfacd26..376f7a5 160000 --- a/kotlinpoet +++ b/kotlinpoet @@ -1 +1 @@ -Subproject commit cfacd265062785a143e8540eca275999ff78ad43 +Subproject commit 376f7a5484b104b3fccfb230d342193ef06468e5