Question: I have a Korlin/JS project that uses set...
# gradle
t
Question: I have a Korlin/JS project that uses settings.gradle.kts and build.gradle.kts and a shared multiplatform project I would like to reference that is using settings.gradle and build.gradle (groovy). Is it possible to reference one from the other, or will I have to convert one to kts or the other to groovy?
c
Depends on what do you mean by reference. I'm not very knowledgeable about MPP, but speaking gradle - you can reference project dependencies regardless of what api was used to define them, at the point where you say
implementation(":blabla")
it doesn't matter how
blabla
project is defined.
t
In my Android project that references the shared project, I had to add this to the settings.gradle file:
Copy code
include ':sharedlibrary'
project(':sharedlibrary').projectDir = new File(settingsDir, '../shared-library')
I expect I have to do the same in the Kotlin/JS settings.gradle.kts file?