I am making kotlin springboot milti module proejct...
# announcements
m
I am making kotlin springboot milti module proejct as gradle kotlin DSL script: Then How can I import another sibling module as a dependecy ?
Copy code
dependencies {
    val swaggerVersion = "2.9.2"
    val hikaricpVersion = "3.3.1"
    val typesafeVersion = "1.4.0"
    val kotlinloggingVersion = "1.7.9"
    val modelMapperVersion = "2.3.7"

    subprojects.forEach {

        if( it.name != "common" ) {
            implementation(project(it.path)) {
                dependencies {
                    implementation(project(":common"))
                }
            }
        } else {
            implementation(project(":common"))
        }
    }

    implementation("com.zaxxer:HikariCP:${hikaricpVersion}")
    implementation("org.springframework.boot:spring-boot-starter-web")
    ::::
}
I trid this but it(internal) don't import common modules as a dependency. settings.gradle.kts
Copy code
rootProject.name = "gia"
include("common", "internal")