From 38e993bab16d13f85ae05a6f5cb8ea81cf034c44 Mon Sep 17 00:00:00 2001 From: Alexander Ioffe Date: Sun, 21 Jul 2024 22:42:28 -0400 Subject: [PATCH] Add note --- decomat-examples/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/decomat-examples/build.gradle.kts b/decomat-examples/build.gradle.kts index d40fbd5..857ea63 100644 --- a/decomat-examples/build.gradle.kts +++ b/decomat-examples/build.gradle.kts @@ -161,6 +161,7 @@ if (project.hasProperty("platform") && project.property("platform") == "linux") } // Add the kspCommonMainKotlinMetadata dependency to sourcesJar tasks if needed +// (i.e. in some cases the task e.g. tasks("jsSourcesJar") will not exist) tasks.findByName("jsSourcesJar")?.dependsOn("kspCommonMainKotlinMetadata") tasks.findByName("jvmSourcesJar")?.dependsOn("kspCommonMainKotlinMetadata") tasks.findByName("linuxX64SourcesJar")?.dependsOn("kspCommonMainKotlinMetadata")