Gradle Multi-Project Documentation Clarification

I was using the documentation for multi-project builds: https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#sec:project_jar_dependencies

But I ran into an issue and the project would not build, even though I had done exactly as advised in the documentation.

It turns out that the buildSrc/ directory also needs a build.gradle file with at least the following:

plugins {
id ‘groovy-gradle-plugin’
}

So the documentation should probably mention that this build.gradle file needs to be in the buildSrc/ directory.

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.

It’s been two years. Got into same issue because of the documentation.

Well, this is not a bug tracker, but a community forum.
If this is an error in the docs, you should open an issue in the bug tracker at Issues · gradle/gradle · GitHub :slight_smile: