-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gradle] New Compose Compiler gradle plugin checks. #4604
Conversation
} | ||
} | ||
|
||
internal const val newCompilerIsAvailableVersion = "2.0.0-RC1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal const val newCompilerIsAvailableVersion = "2.0.0-RC1" | |
internal const val newCompilerIsAvailableVersion = "2.0.0" |
The 2.0.0-RC1 Compose Compiler isn't suitable for Compose Multiplatform.
If we'll have some Kotlin RC that supports it, we can downgrade this version later.
@eymar, please, confirm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some thoughts:
- RC1 is the only version we can test this chnage at the moment.
- RC1 is okay for android+jvm projects where we can test this change.
But we should not force 1.6.10-beta01 users to apply a new compose-compiler-gradle plugin, because it doesn't support compose multiplatform yet.
Perhaps we don't merge this now, so it won't go into 1.6.10-beta01.
Before merging, we can update to RC2 (hopefully) or RC3 version here.
...-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt
Outdated
Show resolved
Hide resolved
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeExtension.kt
Show resolved
Hide resolved
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/internal/Version.kt
Show resolved
Hide resolved
...-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt
Outdated
Show resolved
Hide resolved
…ied. To throw a configuration error if it's not, and to fail the build
0663b4d
to
a99a95a
Compare
The error happens because there is no Kotlin 2.0.0-RC2 yet |
Is it only in tests? Can we disable them? We need to merge the PR before it will be available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's sync tomorrow before the merge.
If KGP >= 2.0.0-RC1 new Compose gradle plugin has to be applied.
To throw a configuration error if it's not.