cookery/desktop/build.gradle

42 lines
986 B
Groovy
Raw Normal View History

2019-12-31 16:50:44 +01:00
apply plugin: "java"
sourceCompatibility = 1.8
2019-12-31 16:50:44 +01:00
sourceSets.main.java.srcDirs = [ "src/" ]
project.ext.mainClassName = "se.cookery.desktop.DesktopLauncher"
dependencies {
implementation project(":core")
2020-03-21 19:57:43 +01:00
runtime "org.jmonkeyengine:jme3-lwjgl3:${jme3Version}-stable"
runtime "org.jmonkeyengine:jme3-desktop:${jme3Version}-stable"
2019-12-31 16:50:44 +01:00
}
task run(dependsOn: classes, type: JavaExec) {
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
ignoreExitValue = true
}
task debug(dependsOn: classes, type: JavaExec) {
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
ignoreExitValue = true
debug = true
}
task dist(type: Jar) {
manifest {
attributes 'Main-Class': project.mainClassName
}
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
dist.dependsOn classes