38 lines
1.3 KiB
Groovy
38 lines
1.3 KiB
Groovy
apply plugin: 'application'
|
|
|
|
sourceSets.main.resources.srcDirs += [ rootProject.file('assets').path ]
|
|
mainClassName = 'Collector.lwjgl3.Lwjgl3Launcher'
|
|
eclipse.project.name = appName + '-lwjgl3'
|
|
sourceCompatibility = 8.0
|
|
|
|
dependencies {
|
|
api project(':core')
|
|
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
|
|
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
|
api "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
|
|
api "com.badlogicgames.gdx:gdx-controllers-lwjgl3:$gdxVersion"
|
|
api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
|
|
api "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-desktop"
|
|
api "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
|
|
api "de.tomgrill.gdxdialogs:gdx-dialogs-desktop:$dialogsVersion"
|
|
}
|
|
|
|
import org.gradle.internal.os.OperatingSystem
|
|
|
|
run {
|
|
workingDir = rootProject.file('assets').path
|
|
setIgnoreExitValue(true)
|
|
|
|
if (OperatingSystem.current() == OperatingSystem.MAC_OS) {
|
|
// Required to run LWJGL3 Java apps on MacOS
|
|
jvmArgs += "-XstartOnFirstThread"
|
|
}
|
|
}
|
|
jar {
|
|
archiveFileName = "${appName}-${version}.jar"
|
|
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
manifest {
|
|
attributes 'Main-Class': project.mainClassName
|
|
}
|
|
}
|