You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.IllegalStateException: Expected class java.lang.String for key kotlinCoroutines, but was class java.util.LinkedHashMap
at nl.littlerobots.vcu.VersionCatalogParser.parse(VersionCatalogParser.kt:131)
at nl.littlerobots.vcu.plugin.VersionCatalogUpdateTask.updateCatalog(VersionCatalogUpdateTask.kt:83)
It's not obvious how to make a decision in different combinations of a rich version.
There're higher chances that such customizations are because of some workarounds.
Maybe It's safer to start skipping them and warn users about this decision.
The text was updated successfully, but these errors were encountered:
eugene-krivobokov
changed the title
Update fails on rich versions format
Update fails on a rich version declaration
Jan 29, 2022
Thanks for reporting, you're right I missed that a version could be a rich declaration in the version block too. There is some handling for library declarations but I think in that case the library is left alone without any updates, like you suggest. After checking; there is handling for it in the version parser, but the updating the catalog isn't handled correctly either, so that needs to be fixed too then 😅
While there's no automatic update on version definitions with a condition, a message is logged when updates are available for dependencies using a condition.
Environment:
nl.littlerobots.version-catalog-update: 0.2.1
com.github.ben-manes.versions: 0.39.0
Gradle: 7.3.2
libs.versions.toml:
Scenario:
Unexpected result:
This format is only the one of possible: toml-dependencies-format
Expected behavior
It's not obvious how to make a decision in different combinations of a rich version.
There're higher chances that such customizations are because of some workarounds.
Maybe It's safer to start skipping them and warn users about this decision.
The text was updated successfully, but these errors were encountered: