From 9ad7d63beb48d211925bebd13d2ae6253b6341a0 Mon Sep 17 00:00:00 2001 From: Dennis Kuijs Date: Thu, 30 Jul 2026 17:01:27 +0200 Subject: [PATCH 1/2] fix maven closing repo --- project.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/project.gradle b/project.gradle index 976ee20..46cc6dc 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() @@ -132,6 +139,7 @@ plugins.withType(JavaPlugin).whenPluginAdded { pluginManager.apply(libs.plugins.testLogger.get().pluginId) + test { workingDir = findProject(":openremote") != null ? project(":openremote").projectDir : rootProject.projectDir if (findProject(":openremote") == null) { From d1ac237e4004c5d1ec45713cb3498db78e3ea2ee Mon Sep 17 00:00:00 2001 From: Dennis Kuijs Date: Thu, 30 Jul 2026 17:02:42 +0200 Subject: [PATCH 2/2] fix maven closing repo --- project.gradle | 1 - 1 file changed, 1 deletion(-) diff --git a/project.gradle b/project.gradle index 46cc6dc..7bdb39f 100644 --- a/project.gradle +++ b/project.gradle @@ -139,7 +139,6 @@ plugins.withType(JavaPlugin).whenPluginAdded { pluginManager.apply(libs.plugins.testLogger.get().pluginId) - test { workingDir = findProject(":openremote") != null ? project(":openremote").projectDir : rootProject.projectDir if (findProject(":openremote") == null) {