Hey guys, I've just published a lib on bintray whi...
# random
d
Hey guys, I've just published a lib on bintray which contains utils for Gradle, since one of the utils is regarding publishing, I have a script in the
buildSrc
which I want to include in the lib itself with
api(project(":buildSrc"))
, but when I include the lib in my project I got an error at sync time that says that
:Library:buildSrc
cannot be resolved. Any hint about that?
g
You shouldn't include buildSrc directly, better to extract script and include in buildSrc and library, also your buildSrc may contain a lot of other dependencies that probably shouldn't be exposed just because of one script The reason why it doesn't work is because buildSrc is not a module of your project, it's actually completely separate project, it's just like Gradle composite build
d
Thank you, it makes sense 🙂 actually I have only the script in the
buildSrc
because I don't know where I could place it otherwise 🤔