From 84ae764245566c31cffeb75940f51cea0c850f66 Mon Sep 17 00:00:00 2001 From: daz Date: Mon, 27 Nov 2023 16:39:39 +1000 Subject: [PATCH] Disable config-cache for publishPlugins task --- plugin/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index 92fbe35..d722920 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -1,4 +1,5 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar +import com.gradle.publish.PublishTask import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.dsl.KotlinVersion import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -204,6 +205,10 @@ tasks.named("githubRelease").configure { dependsOn(createReleaseTag) } +tasks.withType(PublishTask::class).configureEach { + notCompatibleWithConfigurationCache("$name task does not support configuration caching") +} + abstract class CreateGitTag : DefaultTask() { @get:Input abstract val tagName: Property