diff --git a/maestro-client/build.gradle.kts b/maestro-client/build.gradle.kts index 4a6a2aa967..fd765d8eb2 100644 --- a/maestro-client/build.gradle.kts +++ b/maestro-client/build.gradle.kts @@ -1,4 +1,5 @@ import com.vanniktech.maven.publish.SonatypeHost +import com.vanniktech.maven.publish.tasks.SourcesJar import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask plugins { @@ -105,7 +106,7 @@ tasks.named("compileKotlin", KotlinCompilationTask::class.java) { } } -tasks.withType { +tasks.withType(SourcesJar::class).configureEach { duplicatesStrategy = DuplicatesStrategy.EXCLUDE }