This message was deleted.
# dependency-management
s
This message was deleted.
m
both should be allowed
m
It doesn't though 😞
Copy code
[libraries]
compose-bom = "androidx.compose:compose-bom:2023.01.00"
compose-ui =  "androidx.compose.ui:ui"
fails with:
Copy code
org.gradle.api.InvalidUserDataException: Invalid TOML catalog definition:
  - Problem: In version catalog libs, on alias 'compose-ui' notation 'androidx.compose.ui:ui' is not a valid dependency notation.
should I file a bug?
m
sorry I wasn't clear, I was telling you that yes, both should be allowed, but they are not now. FWIW, I prefer the following notation:
Copy code
compose-bom = { module = "androidx.compose:compose-bom", version = "" }
but yeah, you should file a bug report (and create a PR ;))
👍 2
m
https://github.com/gradle/gradle/issues/24169 I'll try my best to come up with a PR (but no promises 🙂 )
👌 2