Skip to content
Advertisement

Korge gradle setup for JVM target

I want to try the Korge libs on the JVM. I used the Korge IntelliJ plugin to create a new project. My build.gradle.kts looks like this :

JavaScript

I’ve copied the commonMain code into the jvmMain folder and running the project with the runJvm command. I’ve looked into the examples on the korge doc and github, but i can’t manage to solve the following silly question : If I have a java dependency from maven, let’s say

JavaScript

where do I put it in this file ?

Thank you very much for your attention

Advertisement

Answer

I can’t find the answer in the documentation either, but after going through the Gradle plugin source files, it appears that they are using the addDependency function in the korge {} block. In your case it would look something like this:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement