forked from StarOpenSource/Engine
67 lines
1.8 KiB
Text
67 lines
1.8 KiB
Text
|
/*
|
||
|
* STAROPENSOURCE ENGINE SOURCE FILE
|
||
|
* Copyright (c) 2024 The StarOpenSource Engine Authors
|
||
|
* Licensed under the GNU Affero General Public License v3
|
||
|
* with an exception allowing classpath linking.
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU Affero General Public License as
|
||
|
* published by the Free Software Foundation, either version 3 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU Affero General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Affero General Public License
|
||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
// Plugins
|
||
|
plugins {
|
||
|
id("java")
|
||
|
id("application")
|
||
|
}
|
||
|
|
||
|
// Dependencies
|
||
|
dependencies {
|
||
|
// Kotlin support
|
||
|
kotlin(property("dependencyKotlinStdIdentifier") as String)
|
||
|
|
||
|
// sos!engine
|
||
|
implementation(project(":logging"))
|
||
|
implementation(project(":base"))
|
||
|
}
|
||
|
|
||
|
// Configure JAR
|
||
|
tasks.withType<Jar> {
|
||
|
manifest {
|
||
|
attributes.put("Main-Class", "de.staropensource.engine.testapp.MainKt")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Configure application
|
||
|
application {
|
||
|
mainClass = "de.staropensource.engine.testapp.Main"
|
||
|
applicationDefaultJvmArgs = listOf(
|
||
|
// JVM
|
||
|
// -> VM option unlocks
|
||
|
"-XX:+UnlockDiagnosticVMOptions",
|
||
|
|
||
|
// -> Display GC log
|
||
|
//"-Xlog:gc",
|
||
|
|
||
|
// -> Method compilation logging
|
||
|
//"-XX:+PrintCompilation",
|
||
|
//"-XX:+PrintInlining",
|
||
|
|
||
|
// Jansi
|
||
|
// -> Force writing ANSI
|
||
|
"-Djansi.mode=force",
|
||
|
|
||
|
// sos!engine
|
||
|
// *none yet*
|
||
|
)
|
||
|
}
|