Ahmed Mourad
06/02/2021, 9:45 PMA and B, both of which only contain commonMain and commonTest source sets and have jvm, js and ios as targets. Also B depends on A.
The problem is I can't reference the classes defined in the commonMain of A inside the commonMain of B , so something is probably wrong with my Gradle files...Ahmed Mourad
06/02/2021, 9:46 PMbuild.gradle of A looks like:
kotlin {
    jvm()
    js {
        browser()
        nodejs()
    }
    ios()
    sourceSets {
        val commonMain by getting {
            dependencies {
                implementation(kotlin("stdlib-common"))
            }
        }
        val commonTest by getting {
            dependencies {
                implementation(kotlin("test-common"))
                implementation(kotlin("test-annotations-common"))
            }
        }
    }
}Ahmed Mourad
06/02/2021, 9:47 PMbuild.gradle of B looks like:
kotlin {
    jvm()
    js {
        browser()
        nodejs()
    }
    ios()
    sourceSets {
        val commonMain by getting {
            dependencies {
                implementation(kotlin("stdlib-common"))
                implementation(project(":a"))
            }
        }
        val commonTest by getting {
            dependencies {
                implementation(kotlin("test-common"))
                implementation(kotlin("test-annotations-common"))
            }
        }
    }
}rnett
06/02/2021, 9:48 PMstdlib dependencies any more, and should use kotlin("test") instead of test-common and test-annotations-common.  Does it actually fail to compile, or is the IDE just complaining?Ahmed Mourad
06/02/2021, 10:01 PM