I am very excited about the incubating version catalog feature and have been experimenting with it. I’ve found that the information in my gradle/libs.versions.toml is accessible in the build.gradle.kts scripts for my app and utility-lib projects.
However, I am unable to use the content of the toml file for buildSrc/build.gradle.kts or the convention files. The only way that I could build was to hard-code the dependencies into those files, as I did before the version catalog feature. In the buildSrc project, I created a settings.gradle.kts file and inserted the dependencyResolutionManagement code for versionCatalogs, and it is pointing to the same file as for my app and utility-lib projects.
Based on the Gradle7 documentation, it seems that sharing a version catalog with buildSrc and projects is the intention… I’d appreciate a nudge into getting it to work with buildSrc, if possible.
Here is a uri to my simple sample project, which I created via ‘gradle init’:
Thank you for your time and help,