diff --git a/project.gradle b/project.gradle index 976ee20..7bdb39f 100644 --- a/project.gradle +++ b/project.gradle @@ -61,6 +61,13 @@ subprojects { } } +tasks.configureEach { task -> + 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") + } +} + // Default repositories for dependency resolution repositories { mavenLocal()