I was using the documentation for multi-project builds: https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#sec:project_jar_dependencies
It turns out that the
buildSrc/ directory also needs a
build.gradle file with at least the following:
So the documentation should probably mention that this
build.gradle file needs to be in the
Side note, after messing with it a bit I learned that the name of the
buildSrc/ directory is a hard requirement and it can’t be renamed, it would also be helpful if this was mentioned in the documentation.