X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=desktop%2Fbuild.gradle;h=04317e4a995c6299132e0aa0225ce17e69d005de;hb=4e63a1e672fcf47fab405eb660f7020b6f5c0283;hp=94e48c3ebf7ff14595b2d925a2770d567a44479a;hpb=c1fdecd8692e21b59a720eca1a3617cb5eb7c07f;p=cavedroid.git diff --git a/desktop/build.gradle b/desktop/build.gradle index 94e48c3..04317e4 100644 --- a/desktop/build.gradle +++ b/desktop/build.gradle @@ -1,7 +1,13 @@ -apply plugin: "kotlin" +plugins { + id 'java-library' + id 'kotlin' + id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion" +} + +java.targetCompatibility = JavaVersion.VERSION_17 +java.sourceCompatibility = JavaVersion.VERSION_1_8 -sourceCompatibility = 17 -sourceSets.main.java.srcDirs = [ "src/" ] +sourceSets.main.java.srcDirs = ["src/"] sourceSets.main.resources.srcDirs = ["../android/assets"] project.ext.mainClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher" @@ -22,7 +28,7 @@ task runTouch(dependsOn: classes, type: JavaExec) { standardInput = System.in workingDir = project.assetsDir ignoreExitValue = true as JavaExecSpec - args "--touch --debug" + args "--touch", "--debug" } task debug(dependsOn: classes, type: JavaExec) { @@ -45,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" +}