Open bamboo opened 1 year ago
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.
There are a number of Isolated Projects violations that appear if we run all Kotlin DSL TAPI cross version tests.
Project.classLoaderScope
call (sources)
dependsOn
a task from the root (sources)
Project.buildscript
for collecting the source path of a script (source)
project.serviceOf<ClassPathModeExceptionCollector>()
(source)Project.layout.buildDirectory
to make a certain directory a scriptClassPath
(source)
This was partially fixed in https://github.com/gradle/gradle/pull/27434, however, the support is not fully complete feature-wise.
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