Kotlin Native: I've built Kotlin-libui ( <https://...
# gradle
k
Kotlin Native: I've built Kotlin-libui ( https://github.com/msink/kotlin-libui ), but how do I include it in my project's build.gradke.kt? I can only find guides on how to add for example maven dependencies but nothing on local ones.
Some tutorials suggest something like
Copy code
implementation(fileTree("C:/repos/kotlin-libui/libui/build/libs"))
But I only get the error
Unresolved reference: implementation
I guess this library is just unusable since it's not on any repository and the dev is missing.
v
If the Gradle version is compatible, the best way is a [composite build](https://docs.gradle.org/current/userguide/composite_builds.html). If it is not, then
publishToMavenLocal
that project and add maven local to your repositories, but with a content filter so that only that dependency is taken from maven local, as it is broken by design. Do not use such file tree non-sense, or you might depend on things you didn't want to and also miss its dependencies.
That
implementation
is not found is btw. simply because you did not apply any plugin in that project that adds this configuration.