Skip to content
2 changes: 2 additions & 0 deletions aws-runtime/aws-config/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,6 @@ dokka {
suppress.set(true)
}
}

modulePath = "aws-config"
}
4 changes: 4 additions & 0 deletions aws-runtime/aws-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ kotlin {
}
}
}

dokka {
modulePath = "aws-core"
}
4 changes: 4 additions & 0 deletions aws-runtime/aws-endpoint/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ kotlin {
}
}
}

dokka {
modulePath = "aws-endpoint"
}
4 changes: 4 additions & 0 deletions aws-runtime/aws-http/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ kotlin {
}
}
}

dokka {
modulePath = "aws-http"
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ class GradleGenerator : KotlinIntegration {
}
}

writer.write("")
writer.withBlock("dokka {", "}") {
val serviceModuleName = ctx.settings.pkg.name.split(".").last()
write("modulePath = #S", serviceModuleName)
}

val contents = writer.toString()
delegator.fileManifest.writeFile("build.gradle.kts", contents)
}
Expand Down
7 changes: 2 additions & 5 deletions hll/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ apiValidation {
).filter { it in availableSubprojects } // Some projects may not be in the build depending on bootstrapping
}

// Configure Dokka for subprojects
// Configure Dokka for dynamodb-mapper
dependencies {
subprojects.forEach {
it.plugins.apply("dokka-convention") // Apply the Dokka conventions plugin to the subproject
dokka(project(it.path)) // Aggregate the subproject's generated documentation
}
dokka(rootProject.project(":hll:dynamodb-mapper"))
}
8 changes: 8 additions & 0 deletions hll/dynamodb-mapper/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
`dokka-convention`
}

dependencies {
dokka(rootProject.project(":hll:dynamodb-mapper:dynamodb-mapper"))
dokka(rootProject.project(":hll:dynamodb-mapper:dynamodb-mapper-annotations"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@
description = "DynamoDbMapper annotations"
extra["displayName"] = "AWS :: SDK :: Kotlin :: HLL :: DynamoDbMapper :: Annotations"
extra["moduleName"] = "aws.sdk.kotlin.hll.dynamodbmapper.annotations"

plugins {
`dokka-convention`
}

dokka {
modulePath = "dynamodb-mapper-annotations"
}
5 changes: 5 additions & 0 deletions hll/dynamodb-mapper/dynamodb-mapper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ buildscript {

plugins {
alias(libs.plugins.ksp)
`dokka-convention`
}

kotlin {
Expand Down Expand Up @@ -184,3 +185,7 @@ tasks.withType<Test> {
startDdbLocal.stop()
}
}

dokka {
modulePath = "dynamodb-mapper"
}
Loading