Guilherme Cordeiro
02/23/2021, 8:49 PMcommonMain and commonTest that I want to share (like frameworks, contracts, test utilities, etc)
2. Several other independently built modules, depending on the base module
What is the proper way to add the base module on the dependencies of the child modules?
Inside the sourceSets block, for both commonMain and commonTest ?
Can I access classes defined on the base module commonTest inside a child module commonTest ?Guilherme Cordeiro
02/23/2021, 8:53 PMsourceSets {
val commonMain by getting {
dependencies {
api(project(":base"))
}
}
val commonTest by getting {
dependencies {
api(project(":base"))
}
}
}Guilherme Cordeiro
02/23/2021, 8:54 PMcommonTest on the child module commonTest , I get an Unresolved reference error when compiling ๐Guilherme Cordeiro
02/23/2021, 8:55 PMemmanuelkehinde
02/23/2021, 10:39 PMArkadii Ivanov
02/24/2021, 12:20 AMTijl
02/24/2021, 7:44 AMGuilherme Cordeiro
02/24/2021, 12:26 PMrusshwolf
02/24/2021, 1:32 PMArkadii Ivanov
02/24/2021, 3:55 PMGuilherme Cordeiro
02/25/2021, 12:34 PMTijl
02/25/2021, 3:55 PMGuilherme Cordeiro
02/25/2021, 7:04 PM