Skip to content

Commit af3c184

Browse files
committed
Add modulePath to code-generated build.gradle.kts to preserve Dokka1 module paths
1 parent 44ab1e7 commit af3c184

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/GradleGenerator.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ class GradleGenerator : KotlinIntegration {
7777
}
7878
}
7979

80+
writer.write("")
81+
writer.withBlock("dokka {", "}") {
82+
val serviceModuleName = ctx.settings.pkg.name.split(".").last()
83+
write("modulePath = #S", serviceModuleName)
84+
}
85+
8086
val contents = writer.toString()
8187
delegator.fileManifest.writeFile("build.gradle.kts", contents)
8288
}

0 commit comments

Comments
 (0)