Kev L
02/15/2022, 12:29 AMdependencies {
testImplementation project(':test')
}
This is the build.gradle for project `test`:
dependencies {
api project(':web')
}
I assume it is because test
is only called during runtime in web
and at that point test
has everything it needs from web
to work?Łukasz Wasylkowski
02/15/2022, 7:22 AMweb
are built, as they have no dependencies
then, main source of test
are built, because :web
dependency can be already satsified
then, `web`’s test sources are built, because :test
is now built tooDaan
02/15/2022, 7:24 AMmain
and test
) which each have their separate classpaths:
web.main: web.main
test.main: test.main + web.main
web.test: web.test + test.main + web.main
Thus technically you have no circular dependency, although I personally have a check to prevent these kind of dependencies.Kev L
02/15/2022, 4:12 PM