DEADSOFTWARE

Add module code gen
[cavedroid.git] / desktop / build.gradle
index 70a63ba56bc3d5f3207941b4c50ac64eab09ee3e..04317e4a995c6299132e0aa0225ce17e69d005de 100644 (file)
@@ -1,10 +1,13 @@
 plugins {
+    id 'java-library'
     id 'kotlin'
     id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion"
 }
 
-sourceCompatibility = 17
-sourceSets.main.java.srcDirs = [ "src/" ]
+java.targetCompatibility = JavaVersion.VERSION_17
+java.sourceCompatibility = JavaVersion.VERSION_1_8
+
+sourceSets.main.java.srcDirs = ["src/"]
 sourceSets.main.resources.srcDirs = ["../android/assets"]
 
 project.ext.mainClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher"
@@ -48,5 +51,11 @@ task dist(type: Jar) {
     with jar
 }
 
+dist.dependsOn classes
 
-dist.dependsOn classes
\ No newline at end of file
+dependencies {
+    implementation project(":core")
+    implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion"
+    api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
+    api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
+}