박상혁
08/27/2025, 2:20 AMExcellence kawej
08/27/2025, 10:53 AM박상혁
08/28/2025, 4:51 AMErnestas
09/10/2025, 8:34 AMdesignsystem module, which has a material3 dependency, that I want to hide from the composeApp module, but it's still visible:
# settings.gradle.kts
include(":composeApp")
include(":core:designsystem")
<...>
# :core:designsystem:build.gradle.kts
kotlin {
sourceSets {
commonMain.dependencies {
implementation(compose.material3)
}
}
}
<...>
Did you find a solution for this?박상혁
09/10/2025, 8:42 AMErnestas
09/10/2025, 8:49 AM박상혁
09/10/2025, 8:52 AMErnestas
09/10/2025, 10:16 AM#.idea/codeInsightSettings.xml
<project version="4">
<component name="JavaProjectCodeInsightSettings">
<excluded-names>
<name>androidx.compose.material3</name> <------ The import you want to exclude
</excluded-names>
</component>
</project>
But this will hide the import from all modules 🙂Excellence kawej
09/10/2025, 10:39 AMdependencies {
... //other dependencies
implementation(project(":shared"))
}
Or you could just call the core:designSystem inside the commonMain.dependencies in the build.gradle.kts file of your shared module
commonMain.dependencies {
implementation(project(":core:designSystem"))
}
But depending on what i see, i could say that your core module is inside the shared module(composeApp). So why have you declare it in gradle settings? If not could you provide your file structure, this way we could help you more???Ernestas
09/10/2025, 11:13 AM:composeApp is the main module, while other modules are added as dependencies in :composeApp
commonMain.dependencies {
implementation(projects.core.designsystem)
implementation(projects.core.navigation)
<...>
}Excellence kawej
09/10/2025, 11:15 AMExcellence kawej
09/10/2025, 11:16 AMErnestas
09/10/2025, 11:17 AMiosApp module and that's it. core is just a simple folderExcellence kawej
09/10/2025, 11:24 AMErnestas
09/10/2025, 11:26 AMExcellence kawej
09/10/2025, 11:26 AMExcellence kawej
09/10/2025, 11:28 AM