Slackbot
02/20/2023, 11:20 AMVampire
02/20/2023, 11:39 AMlibrary:a depends on sandbox:b and sandbox:b depends on library:c (where library:c does not anyhow depend on library:a of course)Leon Linhart
02/20/2023, 11:56 AMNiels Doucet
02/20/2023, 12:09 PMVampire
02/20/2023, 1:13 PMincludeBuild a build, but don't have a dependency, nothing of the included build is built.
If you include a build with 5 projects and only depend on one of them, only that one should be built.
So I think it should work just fine.Leon Linhart
02/20/2023, 9:32 PMVampire
02/20/2023, 10:22 PMVampire
02/20/2023, 10:23 PMgroup = com.example on both projects and remove the substitution blocksVampire
02/20/2023, 10:23 PM> Task :library:build
BUILD SUCCESSFUL in 3sVampire
02/20/2023, 10:23 PMtestRuntimeClasspath - Runtime classpath of source set 'test'.
\--- com.example:sandbox:0.1.0 -> project :sandbox
\--- com.example:library:0.1.0 -> project :library (*)Vampire
02/20/2023, 10:32 PMconfigurations.configureEach {
resolutionStrategy.dependencySubstitution {
substitute(module("com.example:library")).using(project(":library"))
}
}
in your library/build.gradle.kts it also works.
The library build just don't know about the substitution you configured in the sandbox build.