Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Exclude incompatible tasks from configuration caching (#2980)

Wouter Born8e94ba27f88b
diff --git a/project.gradle b/project.gradle
index 911c3bc58..03ea4b739 100644
--- a/project.gradle
+++ b/project.gradle
@@ -60,6 +60,16 @@ configurations.all {
if (project == rootProject) {
project.afterEvaluate {
+ tasks.configureEach { task ->
+ if (task.name in ['encryptFiles', 'decryptFiles']) {
+ task.notCompatibleWithConfigurationCache("GradleFileEncrypt stores javax.crypto.SecretKey/SecretKeySpec task state")
+ }
+
+ if (task.name in ['findSonatypeStagingRepository', 'closeSonatypeStagingRepository', 'releaseSonatypeStagingRepository', 'closeAndReleaseSonatypeStagingRepository' ]) {
+ // See: https://github.com/gradle-nexus/publish-plugin/issues/221
+ task.notCompatibleWithConfigurationCache("Gradle Nexus Publish plugin task keeps Gradle Task/Project state")
+ }
+ }
if (rootProject.hasProperty("gradleFileEncrypt")) {
println("File encryption plugin config found, configuring git pre commit hook and decrypt task dependency")