Skip to content

Commit

Permalink
Disable config-cache for publishPlugins task
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Nov 27, 2023
1 parent 541837b commit 8320dfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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<String>
Expand Down

0 comments on commit 8320dfe

Please sign in to comment.