-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Deprecate Gradle plugin dependency aliases #5462
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
Conversation
| @Suppress("DEPRECATION") | ||
| class Dependencies(project: Project) { | ||
| val desktop = DesktopDependencies | ||
| @Deprecated("Specify dependency via version catalog", replaceWith = ReplaceWith("\"org.jetbrains.compose.animation:animation:${ComposeBuildConfig.composeVersion}\"")) |
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.
What about helper constant/function?
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.
It would have been nice to remove repetition from replaceWith argument, but it is not possible due to const expression requirement. The message is temprorary and the whole will be removed soon.
Deprecate Gradle plugin dependency aliases and provide direct replacement.
Fixes CMP-7613 Consider deprecating aliases
compose.material3, etc in favour of using Gradle version catalogTesting
Run a sample app, open build.gradle.kts, apply all suggested replacements.
Release Notes
Migration Notes - Multiple Platforms
compose.ui) are now deprecated. Use provided direct artifact coordinates and add them to the version catalog.