Skip to content

Record whether isolated projects was active for Gradle syncs - #34

Merged
joshfriend merged 1 commit into
mainfrom
jfriend/isolated-projects
Sep 21, 2026
Merged

joshfriend merged 1 commit into
mainfrom
jfriend/isolated-projects

Conversation

@joshfriend

@joshfriend joshfriend commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

Adds telemetry_android_isolated_projects_enabled to sync events. A new Java-only gradle-tooling-extension module ships a ModelBuilderService that reads BuildFeatures.isolatedProjects.active inside the Gradle daemon, and IsolatedProjectsResolverExtension fetches it as a build-level tooling model during sync, so the value is whatever Gradle actually resolved from flags, properties and init scripts rather than a guess from gradle.properties. Bazel syncs report false. Verified the packaged builder against Gradle 9.7.1 and 9.0.0 with the feature on, off, and overridden by --no-isolated-projects.

Fetches a build-level tooling model built in the Gradle daemon from
BuildFeatures so the value is what Gradle actually resolved.
@joshfriend
joshfriend force-pushed the jfriend/isolated-projects branch from 21f41a1 to d9524b8 Compare September 19, 2026 18:16
@joshfriend
joshfriend marked this pull request as ready for review September 21, 2026 12:56
@joshfriend
joshfriend merged commit 162e677 into main Sep 21, 2026
4 checks passed
@joshfriend
joshfriend deleted the jfriend/isolated-projects branch September 21, 2026 12:58
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.

1 participant