This message was deleted.
# general
s
This message was deleted.
v
You can it only use like that with a hack-around. Alternatively you could use the type-unsafe string-based API to access the catalog. See here for more information including my hack-around: https://github.com/gradle/gradle/issues/15383
For the stringly api, get the
VersionCatalogsExtension
extension and use that.
g
Also, in your precompiled script plugin you can't use plugin with version, so just use
id("com.diffplug.spotless")
without version in convention plugin and relevant dependency (from catalog) in implementation/api configuration of your
buildSrc/build.gradle
. See also: https://github.com/gradle/gradle/issues/18620
j
tnx everybody for the help 👍
v
Also, in your precompiled script plugin you can't use plugin with version
That's not true any longer, is it? At least if the versions are consistent. Or was that only in a different part?
g
Nah, it was about plugin versions in subprojects when same version set there in the root project
Versions in precompiled script plugins are still forbidden in 7.4, they should be declared as dependencies
v
ic, thx