This message was deleted.
# android
s
This message was deleted.
n
yes, dependencies should be automatically substituted
j
thanks for your reply, currently I have two main problems, these modules are shipped as libraries so I have a
com.android.library
plugin in their
build.gradle
file, however when I try to sync the project including that module in the build using
includeBuild()
I get the following exception:
Copy code
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.library'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (None of the included builds contain this plugin)
- Plugin Repositories (plugin dependency must include a version number for this source)
the second bullet doesn't really makes sense to me since the plugin is indeed part of the included build, but I'm not sure about the other two. Is this a common issue that I can resolve somehow?
n
I would first try to make sure that the build works without any substitution
j
already tried that, but the result is the same
n
I suspect that your build is simply not working and it has nothing to do with dependency substitution
Have you added google() as a repository so that the android Gradle plugin can be fetched from there?
j
yes that's already declared in the project's
build.gradle.kts
file
but the build works fine with just
implementation project(":some_module")
could it be some interoperability issue with KTS? the modules'
build.gradle
files are standar Groovy, but the
settings.gradle.kts
is, well, a KTS file
n
there should not be an issue there
j
is there something additional that the module's
build.gradle
file should have? I'm using some custom Gradle scripts using
apply from: "/script_path"
but I don't see how that could be an issue
turns out modules can't be used with composite builds because they don't have a root
build.gradle
file neither a
settings.gradle
file. My problem can be solved using simple dependency substitution without any composite builds
n
True composite builds must be fully independent builds