hi guys .... is there anyway to use version catalog inside build-logic with type-safe api ?
a
hi guys .... is there anyway to use version catalog inside build-logic with type-safe api ?
v
Using a hack-around I documented in the according GitHub issue
a
thank you so much but for some reason I can't import
Copy code
import org.gradle.accessors.dm.LibrariesForLibs
I really don't know the reason but accessors not found ... any help ? @Vampire
v
If it does not work, you probably did not fully follow the instructions.
a
Copy code
import org.gradle.accessors.dm.LibrariesForLibs
@Vampire this import itself doesn't work .... the accessors can't be resolved ..... maybe my gradle version is the cause ? (8.7)
v
My hack-around is used by hundreds of users successfully since quite some time. If it does not work, you most probably did not fully follow the instructions.
I can hardly guess which part you are missing as long as you do not show an MCVE
a
what is the relation between this and what I am talking about ? I can't implement your hack from the beginning this is the point .... I can't (import) org.gradle.accessors from the start ..... in my previous projects I was working with the libs like this val libs = the<LibrariesForLibs> but now I can't even import the LibrariesForLibs itself ? you see my point now ?
v
That is not the start, that's already in the middle
Do the whole hack-around, then it will most probably also work in 8.7
🙃 1
a
ok thnx