Hi, I’d like to know if it’s possible to set up a ...
# gradle
p
Hi, I’d like to know if it’s possible to set up a Gradle dependency to a project on my local machine, because I’m working on a something that requires changes to both projects. For this example let’s say
my-project
has a dependency on
my-library
which is set up in the build.gradle.kts of
my-project
like this:
Copy code
dependencies {
    implementation("com.example:my-library:1.16")
}
I don’t want to have to build/deploy
my-library
every time I change something, so is there a way to point the Gradle dependency to the local copy of
my-library
during development to make this easier? These projects are both under the same folder so I tried
implementation("../my-library")
but that didn’t work. I’m on a Mac using IntelliJ, not sure if that matters.
😶 1
r
s
You probably want to use a composite build
👌 1
p
Thanks I’ll have a look
e
https://youtrack.jetbrains.com/issue/KT-52172 multiplatform projects have issues under composite builds, but otherwise they work fine
👍 1
l
I did put a sample project using include and includeBuild strategies. You can check the Github link at https://youtrack.jetbrains.com/issue/KT-50064. If you don’t need Kotlin/JS, then I think using include will work. Otherwise only possibility is to go back to Kotlin 1.5.10.
🙏 1