mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-13 00:05:35 +07:00
0cf617b55a
Moved gdx-backend-lwjgl dependency from impl to testImpl in :core Created backend tool libraries for headless, lwjgl, lwjgl3
36 lines
884 B
Groovy
36 lines
884 B
Groovy
project.ext.visuiVersion = '1.4.2'
|
|
|
|
subprojects {
|
|
apply plugin: 'application'
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
run {
|
|
ignoreExitValue true
|
|
|
|
// Required to run LWJGL3 java apps on MacOS
|
|
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.MAC_OS) {
|
|
jvmArgs += "-XstartOnFirstThread"
|
|
}
|
|
}
|
|
|
|
jar {
|
|
archiveBaseName = project.name
|
|
duplicatesStrategy DuplicatesStrategy.EXCLUDE
|
|
dependsOn configurations.runtimeClasspath
|
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
manifest {
|
|
attributes 'Main-Class': application.mainClass
|
|
}
|
|
|
|
doLast {
|
|
file(archiveFile).setExecutable(true, false)
|
|
}
|
|
}
|
|
}
|