diff --git a/desktop/build.gradle b/desktop/build.gradle
index 04317e4a995c6299132e0aa0225ce17e69d005de..912734500bc8b2c2b414039e17cc9ef830176306 100644 (file)
--- a/desktop/build.gradle
+++ b/desktop/build.gradle
project.ext.mainClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher"
project.ext.assetsDir = new File("../android/assets")
project.ext.mainClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher"
project.ext.assetsDir = new File("../android/assets")
-task run(dependsOn: classes, type: JavaExec) {
+task run(dependsOn: build, type: JavaExec) {
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
args "--debug"
}
args "--debug"
}
-task runTouch(dependsOn: classes, type: JavaExec) {
+task runTouch(dependsOn: build, type: JavaExec) {
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
args "--touch", "--debug"
}
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) {
+task dist(dependsOn: build, type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': project.mainClassName
}
from {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': project.mainClassName
}
from {
- configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
+ configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
}
with jar
}
-dist.dependsOn classes
-
dependencies {
implementation project(":core")
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion"
dependencies {
implementation project(":core")
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion"