Skip to content

Commit 2eb4608

Browse files
committed
simplification
1 parent 6b1bb89 commit 2eb4608

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

hll/dynamodb-mapper/dynamodb-mapper/build.gradle.kts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,12 @@ if (project.NATIVE_ENABLED) {
7979
}
8080
}
8181

82-
tasks.withType<KspAATask>().configureEach {
83-
if (name != "kspCommonMainKotlinMetadata") {
82+
listOf("sourcesJar", "linuxX64SourcesJar", "jvmSourcesJar").forEach {
83+
tasks.named(it) {
8484
dependsOn("kspCommonMainKotlinMetadata")
8585
}
8686
}
8787

88-
tasks.named("sourcesJar") {
89-
dependsOn("kspCommonMainKotlinMetadata")
90-
}
91-
92-
tasks.named("linuxX64SourcesJar") {
93-
dependsOn("kspCommonMainKotlinMetadata")
94-
}
95-
96-
tasks.named("jvmSourcesJar") {
97-
dependsOn("kspCommonMainKotlinMetadata")
98-
}
99-
10088
kotlin.sourceSets.commonMain {
10189
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
10290
}

0 commit comments

Comments
 (0)