Skip to content

[codex] Remove web preload wiring from JVM templates#11

Merged
alexstyl merged 1 commit into
mainfrom
codex/remove-web-preload-wiring
Jun 23, 2026
Merged

[codex] Remove web preload wiring from JVM templates#11
alexstyl merged 1 commit into
mainfrom
codex/remove-web-preload-wiring

Conversation

@alexstyl

Copy link
Copy Markdown
Member

Summary

Remove generated web preload task wiring from projects that do not include the web target.

Why

The CLI was always emitting root Gradle preload wiring for JS/Wasm browser distribution tasks, even when the generated project only configured jvm(). That left JVM-only templates with misleading web/Wasm task scaffolding.

What changed

  • Make root build.gradle.kts preload task wiring conditional on the selected targets.
  • Keep the existing preload wiring for generated projects that include the web target.
  • Update generator tests to assert both cases.

Impact

JVM-only generated projects no longer contain composeCompatibilityBrowserDistribution or related JS/Wasm preload wiring unless web support is actually configured.

Validation

  • ./gradlew :cli:test --tests com.composables.cli.CliTest
  • ./gradlew test
  • ./gradlew spotlessCheck

@alexstyl alexstyl marked this pull request as ready for review June 23, 2026 01:24
@alexstyl alexstyl merged commit 830f2f0 into main Jun 23, 2026
1 check 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.

1 participant