I use Kotlin to write an application for Embedded Linux (Raspberry).
I use the “Embedded Linux JVM” Plugin to distribute my project.
With an old “idea” project configuration things worked as expected.
I recently switched to gradle kts, but now the project will not run after deployment due to missing classes.
I noticed that the old project setup has a folder called ‘lib’ with jars that are obviously copied to a ‘lib’ folder on the Raspi.
The new project has no ‘lib’ folder in the IDE and there are far less jars copied to the target although both projects have the same “External libraries”.
Here is my gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.4.10"
}
group = "me.name"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation(kotlin("stdlib"))
implementation("io.github.microutils", "kotlin-logging-jvm", "2.0.3")
implementation("org.apache.logging.log4j", "log4j-slf4j-impl", "2.13.0")
}