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 00b2552
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 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 @@ -128,6 +129,10 @@ tasks.named("jar").configure {
enabled = false
}

tasks.withType(PublishTask::class).configureEach {
notCompatibleWithConfigurationCache("$name task does not support configuration caching")
}

/**
* Configuration for publishing the plugin, locally and to the Gradle Plugin Portal.
*/
Expand Down Expand Up @@ -204,6 +209,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 00b2552

Please sign in to comment.