Skip to content

Conversation

@kropp
Copy link
Member

@kropp kropp commented Oct 23, 2025

Deprecate Gradle plugin dependency aliases and provide direct replacement.

Fixes CMP-7613 Consider deprecating aliases compose.material3, etc in favour of using Gradle version catalog

Testing

Run a sample app, open build.gradle.kts, apply all suggested replacements.

Release Notes

Migration Notes - Multiple Platforms

  • Dependency aliases in Gradle plugin (e.g. compose.ui) are now deprecated. Use provided direct artifact coordinates and add them to the version catalog.

@kropp kropp requested review from MatkovIvan and eymar October 24, 2025 08:46
@Suppress("DEPRECATION")
class Dependencies(project: Project) {
val desktop = DesktopDependencies
@Deprecated("Specify dependency via version catalog", replaceWith = ReplaceWith("\"org.jetbrains.compose.animation:animation:${ComposeBuildConfig.composeVersion}\""))
Copy link
Member

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?

Copy link
Member Author

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.

@kropp kropp merged commit f5c85b7 into master Oct 24, 2025
19 checks passed
@kropp kropp deleted the deprecate-gradle-aliases branch October 24, 2025 13:26
kropp added a commit that referenced this pull request Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants