I have a project in gradle with a multiproject dependency where it looks like this
Project Big
|--> Project A
|--> Project B
|--> Project C
|--> settings.gradle
// Dynamically include anything with a build.gradle file in the Gradle mutli-project build configuration
fileTree(dir: rootDir, include: '*/**/build.gradle')
.matching {
// Eclipse files
exclude '**/bin/'
// Gradle files
exclude '**/build/'
}
.each {
def path = it.parentFile.absolutePath - rootDir.absolutePath
include(path.replaceAll('[\\\\/]', ':')) }
And I have another project
Project Small
|--> settings.gradle
And I want to build a dependency to Project Big. I see solutions here
Gradle sync issue : None of the consumable configurations have attributes
Sync shared library projects/modules with its source
But keeps getting with this configuration
Project Small
|--> Project Big
|--> settings.gradle
include ":big"
project(":big").projectDir = file("../project-big/")
No matching configuration of project :big was found. The consumer was configured to find an API of a library compatible with Java 11, preferably not packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally but:
- None of the consumable configurations have attributes.
Is it due to the fact I am referencing a multi project module instead of a single project?