Skip to content

Disable Isolated Projects via promoted property in dependency-submission - #1025

Merged
bigdaz merged 1 commit into
gradle:mainfrom
reinsch82:reinhold/dependency-submission-disable-isolated-projects
Jul 31, 2026
Merged

Disable Isolated Projects via promoted property in dependency-submission#1025
bigdaz merged 1 commit into
gradle:mainfrom
reinsch82:reinhold/dependency-submission-disable-isolated-projects

Conversation

@reinsch82

Copy link
Copy Markdown
Member

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) 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.

The dependency-submission action disables Isolated Projects by passing
-Dorg.gradle.unsafe.isolated-projects=false. Recent Gradle versions have
promoted the property to org.gradle.isolated-projects, so builds that
enable IP via the promoted property (e.g. gradle/gradle) are no longer
disabled and fail, since ForceDependencyResolutionPlugin is not
IP-compatible. Pass both property names; unknown properties are ignored
by older Gradle versions.
@bigdaz
bigdaz merged commit ff4dbcd into gradle:main Jul 31, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants