From ff4dbcd5fa57dc552658f5c2e71bfd8adac8a858 Mon Sep 17 00:00:00 2001 From: Reinhold Degenfellner Date: Fri, 31 Jul 2026 21:08:52 +0200 Subject: [PATCH] Disable Isolated Projects via promoted property in dependency-submission (#1025) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem The `dependency-submission` action disables Isolated Projects for the dependency-resolution build by passing `-Dorg.gradle.unsafe.isolated-projects=false`. Recent Gradle versions have promoted the property to `org.gradle.isolated-projects`. A build that enables IP via the promoted property (e.g. `gradle/gradle`, see [this failing run](https://github.com/gradle/gradle/actions/runs/30357651750/job/90269499556?pr=38402)) is no longer disabled by the unsafe spelling, so the build runs with IP enabled and fails: ``` Error resolving plugin [id: 'gradlebuild.build-environment'] > Project ':build-logic-settings' cannot access 'Project.tasks' functionality on subprojects via 'allprojects' ``` (`ForceDependencyResolutionPlugin` is not IP-compatible.) ## Fix Pass both spellings of the property. `-D` system properties that Gradle does not recognize are silently ignored, so this is safe for all supported Gradle versions — the action already passes the unsafe spelling to pre-IP Gradle versions without issue. --- sources/src/actions/dependency-submission/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/src/actions/dependency-submission/main.ts b/sources/src/actions/dependency-submission/main.ts index c488dd33..8e2ccd60 100644 --- a/sources/src/actions/dependency-submission/main.ts +++ b/sources/src/actions/dependency-submission/main.ts @@ -47,6 +47,7 @@ export async function run(): Promise { -Dorg.gradle.configureondemand=false -Dorg.gradle.dependency.verification=off -Dorg.gradle.unsafe.isolated-projects=false + -Dorg.gradle.isolated-projects=false ${taskList} ${additionalArgs} `