From 229c311d5486159190b37a899ddd80431ae15415 Mon Sep 17 00:00:00 2001 From: Nariman Abdullin Date: Mon, 31 Jul 2023 12:23:45 +0300 Subject: [PATCH] Added implicit applying required plugins (#8) --- .../buildutils/publishing-configuration.gradle.kts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/buildSrc/src/main/kotlin/com/saveourtool/osv4k/buildutils/publishing-configuration.gradle.kts b/buildSrc/src/main/kotlin/com/saveourtool/osv4k/buildutils/publishing-configuration.gradle.kts index 86733b0..0eb6df3 100644 --- a/buildSrc/src/main/kotlin/com/saveourtool/osv4k/buildutils/publishing-configuration.gradle.kts +++ b/buildSrc/src/main/kotlin/com/saveourtool/osv4k/buildutils/publishing-configuration.gradle.kts @@ -28,6 +28,10 @@ configurePublishing() fun Project.configurePublishing() { configureNexusPublishing() configureGitHubPublishing() + + apply() + apply() + configurePublications() configureSigning() @@ -239,6 +243,12 @@ fun Project.configureSigningCommon(useKeys: SigningExtension.() -> Unit = {}) { styledOut(logCategory = "signing").style(style).println(message) sign(*publications.toTypedArray()) } + tasks.withType().configureEach { + // Workaround for the problem described at https://github.com/saveourtool/save-cli/pull/501#issuecomment-1439705340. + // We have a single Javadoc artifact shared by all platforms, hence all publications depend on signing of this artifact. + // This causes weird implicit dependencies, like `publishJsPublication...` depends on `signJvmPublication`. + dependsOn(tasks.withType()) + } } /**