Hello everyone :wave: we want to force devs to use...
# community-support
h
Hello everyone 👋 we want to force devs to use
libs
, the one with type
LibrariesForLibs
, instead of raw String, or GString, when they need to add a dependency to a project. I cannot find anything on the Internet, so should I implement it by myself? Any suggestions, directions?
v
I guess you would either need to use a custom distribution only providing the methods you want used, or some static code analyzer.
h
Thanks for responding. Can you give me a link to custom distribution example code?
v
That means you build an own version of Gradle where you removed the methods you don't want to be used and use that instead of an official distribution. This might of course also break some plugins that add dependencies or similar and only works if that distribution is used.
h
Oh! That! No I don't want that 😅 so static code analyzer is the way. Thanks for the direction.
👌 1