Hey, I was wondering if gradle kts + versionCatalo...
# gradle
c
Hey, I was wondering if gradle kts + versionCatalogs works when building convention scripts in buildSrc. I have tried to get it to work with several work arounds. Nothing worked. I am trying to use the libs in the plugin block. Is that something which is just not supported?
v
Exactly, that cannot work even with my hack-around you are probably referring to. Because the
plugins
block of a precompiled script plugin which you probably used to implement your convention plugin is extracted and applied to a separate dummy build to figure out which type-safe accessors to generate. In that dummy project the essential requirements for my hack-around are not possible, so you cannot use it inside the
plugins
block of a precompiled script plugin. But this is not as bad as one might think, because you should apply the plugin without version there anyway and instead add the plugin as dependency of the project building the precompiled script plugin. And there you can use the version catalog even without a hack-around.
c
Thank you for replying 🙂 was able to hide the workaround using convention scripts.