Skip to content

Commit bda500c

Browse files
committed
Fix gcc issue in 'generateJavadocStubs'
1 parent 988fab6 commit bda500c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

buildSrc/src/main/kotlin/publishing-conventions.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,17 @@ plugins.withId("org.jetbrains.kotlin.jvm") {
9393
plugins.withId("org.jetbrains.kotlin.multiplatform") {
9494
/* Maven Central requires javadocs, lets generate some stubs */
9595
val generateJavadocStubs = tasks.register("generateJavadocStubs") {
96+
val projectName = provider { project.name }
97+
inputs.property("projectName", projectName)
98+
9699
val outputDirectory = project.layout.buildDirectory.dir("javadocStubs")
97100
outputs.dir(outputDirectory)
98101
doLast {
99102
outputDirectory.get().asFile.apply {
100103
mkdirs()
101104
resolve(resolve("index.md")).writeText(
102105
"""
103-
# Module ${project.name}
106+
# Module ${projectName.get()}
104107
Check: https://github.com/jetbrains/compose-hot-reload for further documentation
105108
""".trimIndent()
106109
)

0 commit comments

Comments
 (0)