X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=desktop%2Fbuild.gradle;h=70a63ba56bc3d5f3207941b4c50ac64eab09ee3e;hb=HEAD;hp=04317e4a995c6299132e0aa0225ce17e69d005de;hpb=9c3388a824844afa4b28b973049eaae75a21b05a;p=cavedroid.git diff --git a/desktop/build.gradle b/desktop/build.gradle deleted file mode 100644 index 04317e4..0000000 --- a/desktop/build.gradle +++ /dev/null @@ -1,61 +0,0 @@ -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 - -sourceSets.main.java.srcDirs = ["src/"] -sourceSets.main.resources.srcDirs = ["../android/assets"] - -project.ext.mainClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher" -project.ext.assetsDir = new File("../android/assets") - -task run(dependsOn: classes, type: JavaExec) { - main = project.mainClassName - classpath = sourceSets.main.runtimeClasspath - standardInput = System.in - workingDir = project.assetsDir - ignoreExitValue = true as JavaExecSpec - args "--debug" -} - -task runTouch(dependsOn: classes, type: JavaExec) { - main = project.mainClassName - classpath = sourceSets.main.runtimeClasspath - standardInput = System.in - workingDir = project.assetsDir - ignoreExitValue = true as JavaExecSpec - args "--touch", "--debug" -} - -task debug(dependsOn: classes, type: JavaExec) { - main = project.mainClassName - classpath = sourceSets.main.runtimeClasspath - standardInput = System.in - workingDir = project.assetsDir - ignoreExitValue = true as JavaExecSpec - debug = true -} - -task dist(type: Jar) { - duplicatesStrategy = DuplicatesStrategy.EXCLUDE - manifest { - attributes 'Main-Class': project.mainClassName - } - from { - configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } - } - with jar -} - -dist.dependsOn classes - -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" -}