Thread
#multiplatform
    felislynx

    felislynx

    1 year ago
    Hi, i want to add new module to project which will be multiplatform shared module. Inside it i want to add dependency on another project. In groovy format it was like:
    include ':OtherProject'
    project(':OtherProject').projectDir = new File('../other_project/module')
    How to achieve that in KTS format?
    c

    CLOVIS

    1 year ago
    You can just write
    implementation(project(":projectNameHere"))
    Here's an example: the project
    compose/common
    depends on
    client
    . (Both are Multiplattorm) https://gitlab.com/braindot/clovis/-/blob/master/compose/common/build.gradle.kts#L21
    felislynx

    felislynx

    1 year ago
    @CLOVIS it is not exactly ma case. Project that i want to include
    is in other dir
    --Workspaces | -- Project A | --- app | --- multiplatformModule | -- Project B | --- moduleX
    so multiplatform module need to add moduleX as dependency
    app is using old groovy scripts and sees moduleX, multiplatform module uses kts and doesn't see moduleX as dependency
    In your example moduleX would be inside Project A not Project B
    kqr

    kqr

    1 year ago
    include(":asasd")
    project(":adasd").projectDir = File("abc")
    ?
    felislynx

    felislynx

    1 year ago
    Heh @kqr worked after invalidate caches and restart -_-