From 12ff8146ca41355f58abf317df20de61ab21efeb Mon Sep 17 00:00:00 2001 From: Rick Clephas Date: Sun, 11 Jun 2023 14:21:10 +0200 Subject: [PATCH] Make sourcesJar dependency on syncSources explicit --- kmp-nativecoroutines-compiler-embeddable/build.gradle.kts | 4 ++++ kmp-nativecoroutines-gradle-plugin/build.gradle.kts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kmp-nativecoroutines-compiler-embeddable/build.gradle.kts b/kmp-nativecoroutines-compiler-embeddable/build.gradle.kts index 580cbe25..a6959f7f 100644 --- a/kmp-nativecoroutines-compiler-embeddable/build.gradle.kts +++ b/kmp-nativecoroutines-compiler-embeddable/build.gradle.kts @@ -21,6 +21,10 @@ java { withSourcesJar() } +val sourcesJar by tasks.getting(Jar::class) { + dependsOn(syncSources) +} + tasks.compileKotlin.configure { dependsOn(syncSources) kotlinOptions { diff --git a/kmp-nativecoroutines-gradle-plugin/build.gradle.kts b/kmp-nativecoroutines-gradle-plugin/build.gradle.kts index 23ad3169..bf569ec5 100644 --- a/kmp-nativecoroutines-gradle-plugin/build.gradle.kts +++ b/kmp-nativecoroutines-gradle-plugin/build.gradle.kts @@ -24,7 +24,7 @@ tasks.compileKotlin { dependsOn(copyVersionTemplate) } -val sourcesJar by tasks.getting { +val sourcesJar by tasks.getting(Jar::class) { dependsOn(copyVersionTemplate) }