Skip to content
8 changes: 8 additions & 0 deletions aws-runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,12 @@ dependencies {
it.plugins.apply("dokka-convention") // Apply the Dokka conventions plugin to the subproject
dokka(project(it.path)) // Aggregate the subprojects' generated documentation
}

// Preserve Dokka v1 module paths
// https://kotlinlang.org/docs/dokka-migration.html#revert-to-the-dgp-v1-directory-behavior
subprojects {
dokka {
modulePath = this@subprojects.name
}
}
}
39 changes: 28 additions & 11 deletions hll/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,39 @@ subprojects {
}
}

// Projects to ignore for API validation and documentation generation
val projectsToIgnore = listOf(
"hll-codegen",
"dynamodb-mapper-codegen",
"dynamodb-mapper-ops-codegen",
"dynamodb-mapper-schema-codegen",
"dynamodb-mapper-schema-generator-plugin-test",
).filter { it in subprojects.map { it.name }.toSet() } // Some projects may not be in the build depending on bootstrapping

apiValidation {
val availableSubprojects = subprojects.map { it.name }.toSet()

ignoredProjects += listOf(
"hll-codegen",
"dynamodb-mapper-codegen",
"dynamodb-mapper-ops-codegen",
"dynamodb-mapper-schema-codegen",
"dynamodb-mapper-schema-generator-plugin-test",
).filter { it in availableSubprojects } // Some projects may not be in the build depending on bootstrapping
ignoredProjects += projectsToIgnore
}

// Configure Dokka for subprojects
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
if (it.name !in projectsToIgnore) {
it.plugins.apply("dokka-convention") // Apply the Dokka conventions plugin to the subproject
dokka(project(it.path)) // Aggregate the subproject's generated documentation
}
}

// Preserve Dokka v1 module paths
// https://kotlinlang.org/docs/dokka-migration.html#revert-to-the-dgp-v1-directory-behavior
subprojects {
val subProjectName = this@subprojects.name

if (subProjectName in projectsToIgnore) {
return@subprojects
}

dokka {
modulePath = subProjectName
}
}
}
1 change: 1 addition & 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
8 changes: 8 additions & 0 deletions services/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,12 @@ dependencies {
it.plugins.apply("dokka-convention") // Apply the Dokka conventions plugin to the subproject
dokka(project(it.path)) // Aggregate the subproject's generated documentation
}

// Preserve Dokka v1 module paths
// https://kotlinlang.org/docs/dokka-migration.html#revert-to-the-dgp-v1-directory-behavior
subprojects {
dokka {
modulePath = this@subprojects.name
}
}
}
Loading