diff --git a/protobuf/build.gradle.kts b/protobuf/build.gradle.kts index a010a56cf..a7675e65e 100644 --- a/protobuf/build.gradle.kts +++ b/protobuf/build.gradle.kts @@ -56,6 +56,11 @@ tasks.whenTaskAdded { dependsOn(this@whenTaskAdded) } } + if (name == "generateMetadataFileForMavenPublication") { + tasks.named("generateMetadataFileForMavenPublication") { + dependsOn(tasks.findByName("kotlinSourcesJar")) + } + } } tasks {