With the new compose compiler plugin in K2, will t...
# compose
e
With the new compose compiler plugin in K2, will there be a way to set the compiler options globally for each project?
b
Something like this would work I think
Copy code
subprojects {
    apply(plugin = "org.jetbrains.kotlin.plugin.compose")
    extensions.configure<ComposeCompilerGradlePluginExtension> {
    }
}
e
I'm trying to avoid anything that would violate gradle project isolation. I have a convention plugin that I can use; was just curious if there is any plan to support something like this before I port it.
b
Not that I know of but someone else might chime in
thank you color 1
e
if you are concerned with PI then
Copy code
gradle.lifecycle.beforeProject {
  project.isolated.(isolation-safe-api)
}
on gradle 8.8-rc-1 and above.
e
Are you able to apply plugins with the isolation safe API?
e
I havent tried it yet. But I imagine both plugin & consumer have to be on 8.8-rc-1 and above
e
Based on IsolatedProject (coming in Gradle 8.8) I would say that it won't be supported.
e
Ah yeah that wont be possible 👍🏾