Yan Pujante
04/20/2022, 5:53 PMsourceSets {
val jvmMain by getting {
dependencies {
implementation(compose.desktop.currentOs)
implementation(files("external/libs/luaj-jse-3.0.2.jar"))
}
}
but the dependency is not being picked up. If I replace the path with /foo.jar
nothing happens either, not even an error message. Any idea what is wrong?Kirill Grouchnikov
04/20/2022, 5:57 PMYan Pujante
04/20/2022, 5:58 PMdependencies
section outside like in one of the official example (https://github.com/JetBrains/compose-jb/blob/master/examples/notepad/build.gradle.kts) I get Unresolved reference: implementation
errorDragos Rachieru
04/21/2022, 11:33 AMsourceSets
and jvmMain
you are using the multiplatform
plugin.
The notepad example uses the jvm
plugin. That's why it's not working, You can go with jvm
if you target desktop
only
About the jar, make sure the file is in the specified folder relative to the build.gradle.kts
fileYan Pujante
04/21/2022, 12:52 PM> ls -la build.gradle.kts
-rw-r--r-- 1 ypujante staff 1143 Apr 20 10:58 build.gradle.kts
> ls -la external/libs/luaj-jse-3.0.2.jar
-rw-r--r--@ 1 ypujante staff 354944 Apr 20 10:39 external/libs/luaj-jse-3.0.2.jar