gradle / gradle

Adaptable, fast automation for all
https://gradle.org
Apache License 2.0
17.02k stars 4.78k forks source link

Make Kotlin DSL model builder compatible with Isolated Projects #25174

Open bamboo opened 1 year ago

bamboo commented 1 year ago
alllex commented 1 year ago

Models for Sync

The only Kotlin DSL related model requested by recent versions of IntelliJ during sync is KotlinDslScriptsModel (plural).

It is invoked without providing explicit parameters (via system properties). In this case the model builder itself tries to traverse the build and discover all relevant Kotlin scripts with collectKotlinDslScripts function.

Known violations

There are a number of Isolated Projects violations that appear if we run all Kotlin DSL TAPI cross version tests.

alllex commented 11 months ago

This was partially fixed in https://github.com/gradle/gradle/pull/27434, however, the support is not fully complete feature-wise.

alllex commented 5 months ago

Some of the existing use cases for fetching Kotlin DSL models are not yet covered by the existing model builders under Isolated Projects. Those will still need to be addressed during the IP Adoption phase or earlier