2020-11-27 07:32:26 +07:00
|
|
|
project.ext.visuiVersion = '1.4.2'
|
2020-11-17 14:14:33 +07:00
|
|
|
|
2020-11-21 13:44:43 +07:00
|
|
|
subprojects {
|
|
|
|
apply plugin: 'application'
|
|
|
|
|
2020-11-27 07:32:26 +07:00
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
|
2021-11-28 14:42:18 +07:00
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2020-11-21 13:44:43 +07:00
|
|
|
}
|
2020-11-24 15:25:16 +07:00
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
2020-11-21 13:44:43 +07:00
|
|
|
}
|