Skip to content

Instantly share code, notes, and snippets.

@noncom
Created March 5, 2021 08:36
Show Gist options
  • Save noncom/b78f8c53f5968bd448742c8370a02779 to your computer and use it in GitHub Desktop.
Save noncom/b78f8c53f5968bd448742c8370a02779 to your computer and use it in GitHub Desktop.
jme kotlin example build gradle with serialization that builds ok
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.4.30'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.4.30'
}
group 'org.example'
version '1.0-SNAPSHOT'
ext.jmonkeyengineVersion = '3.3.2-stable'
repositories {
mavenCentral()
}
dependencies {
implementation "org.jmonkeyengine:jme3-core:$jmonkeyengineVersion"
implementation "org.jmonkeyengine:jme3-plugins:$jmonkeyengineVersion"
implementation "org.jmonkeyengine:jme3-effects:$jmonkeyengineVersion"
implementation "org.jmonkeyengine:jme3-desktop:$jmonkeyengineVersion"
runtimeOnly "org.jmonkeyengine:jme3-lwjgl:$jmonkeyengineVersion" // LWJGL 2.x
//runtimeOnly "org.jmonkeyengine:jme3-lwjgl3:$jmonkeyengineVersion" // LWJGL 3.x
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment