Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugins dependencies without version (Migration version catalogs)

I started migrating my project to use the new version catalogs, and plugins without version give an error saying that version is needed.

How do I add the plugin below to the toml file since there is no version?

Documentation kotlin parcelize

id("kotlin-parcelize")
like image 707
groff07 Avatar asked Dec 28 '25 14:12

groff07


1 Answers

Found the answer after reading the documentation for the second time.

Documentation new version catalogs

The following code shows how to define the com.android.application plugin in the top and module level build.gradle.kts files. Use alias for plugins that come from the version catalog file and id for plugins that don't come from the version catalog file, such as convention plugins.

Conclusion

If there is no version, use id.

id("kotlin-parcelize")
like image 159
groff07 Avatar answered Dec 31 '25 19:12

groff07



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!