Skip to content

Commit f1ca96b

Browse files
committed
Ignore dynamodb-mapper codegen projects
1 parent ba76843 commit f1ca96b

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

hll/build.gradle.kts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,25 @@ subprojects {
9696
}
9797
}
9898

99+
// Projects to ignore for API validation and documentation generation
100+
val projectsToIgnore = listOf(
101+
"hll-codegen",
102+
"dynamodb-mapper-codegen",
103+
"dynamodb-mapper-ops-codegen",
104+
"dynamodb-mapper-schema-codegen",
105+
"dynamodb-mapper-schema-generator-plugin-test"
106+
).filter { it in subprojects.map { it.name }.toSet() } // Some projects may not be in the build depending on bootstrapping
107+
99108
apiValidation {
100-
val availableSubprojects = subprojects.map { it.name }.toSet()
101-
102-
ignoredProjects += listOf(
103-
"hll-codegen",
104-
"dynamodb-mapper-codegen",
105-
"dynamodb-mapper-ops-codegen",
106-
"dynamodb-mapper-schema-codegen",
107-
"dynamodb-mapper-schema-generator-plugin-test",
108-
).filter { it in availableSubprojects } // Some projects may not be in the build depending on bootstrapping
109+
ignoredProjects += projectsToIgnore
109110
}
110111

111112
// Configure Dokka for subprojects
112113
dependencies {
113114
subprojects.forEach {
114-
it.plugins.apply("dokka-convention") // Apply the Dokka conventions plugin to the subproject
115-
dokka(project(it.path)) // Aggregate the subproject's generated documentation
115+
if (it.name !in projectsToIgnore) {
116+
it.plugins.apply("dokka-convention") // Apply the Dokka conventions plugin to the subproject
117+
dokka(project(it.path)) // Aggregate the subproject's generated documentation
118+
}
116119
}
117120
}

0 commit comments

Comments
 (0)