forked from StarOpenSource/Engine
Extend testapp build.gradle.kts
This commit is contained in:
parent
c78cb4eb75
commit
377c71dfba
3 changed files with 20 additions and 29 deletions
|
@ -20,9 +20,6 @@
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
dependencies {
|
dependencies {
|
||||||
// Kotlin support
|
|
||||||
kotlin(property("dependencyKotlinStdIdentifier") as String)
|
|
||||||
|
|
||||||
// sos!engine
|
// sos!engine
|
||||||
implementation(project(":logging"))
|
implementation(project(":logging"))
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,3 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* 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/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Dependencies
|
|
||||||
dependencies {
|
|
||||||
// Kotlin support
|
|
||||||
kotlin(property("dependencyKotlinStdIdentifier") as String)
|
|
||||||
}
|
|
||||||
|
|
|
@ -26,9 +26,6 @@ plugins {
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
dependencies {
|
dependencies {
|
||||||
// Kotlin support
|
|
||||||
kotlin(property("dependencyKotlinStdIdentifier") as String)
|
|
||||||
|
|
||||||
// sos!engine
|
// sos!engine
|
||||||
implementation(project(":logging"))
|
implementation(project(":logging"))
|
||||||
implementation(project(":base"))
|
implementation(project(":base"))
|
||||||
|
@ -37,30 +34,33 @@ dependencies {
|
||||||
// Configure JAR
|
// Configure JAR
|
||||||
tasks.withType<Jar> {
|
tasks.withType<Jar> {
|
||||||
manifest {
|
manifest {
|
||||||
attributes.put("Main-Class", "de.staropensource.engine.testapp.MainKt")
|
attributes.put("Main-Class", "de.staropensource.engine.testapp.Main")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure application
|
// Configure application
|
||||||
application {
|
application {
|
||||||
mainClass = "de.staropensource.engine.testapp.Main"
|
mainClass = "de.staropensource.engine.testapp.Main"
|
||||||
applicationDefaultJvmArgs = listOf(
|
|
||||||
// JVM
|
|
||||||
// -> VM option unlocks
|
|
||||||
"-XX:+UnlockDiagnosticVMOptions",
|
|
||||||
|
|
||||||
// -> Display GC log
|
// JVM arguments
|
||||||
//"-Xlog:gc",
|
val jvmArgs: MutableList<String> = mutableListOf()
|
||||||
|
// -> JVM
|
||||||
|
jvmArgs.add("-XX:+UnlockDiagnosticVMOptions")
|
||||||
|
|
||||||
// -> Method compilation logging
|
if (hasProperty("run.args.logGC") && property("run.args.logGC") as String == "true")
|
||||||
//"-XX:+PrintCompilation",
|
jvmArgs.add("-Xlog:gc")
|
||||||
//"-XX:+PrintInlining",
|
if (hasProperty("run.args.logJITandAOT") && property("run.args.logJITandAOT") as String == "true") {
|
||||||
|
jvmArgs.add("-XX:+PrintCompilation")
|
||||||
|
jvmArgs.add("-XX:+PrintInlining")
|
||||||
|
}
|
||||||
|
if (hasProperty("run.args.garbageCollector"))
|
||||||
|
when (property("run.args.garbageCollector")) {
|
||||||
|
"epsilon" -> jvmArgs.add("-XX:+UseEpsilonGC")
|
||||||
|
"serial" -> jvmArgs.add("-XX:+UseSerialGC")
|
||||||
|
"g1" -> jvmArgs.add("-XX:+UseG1GC")
|
||||||
|
}
|
||||||
|
// -> Jansi
|
||||||
|
jvmArgs.add("-Djansi.mode=force")
|
||||||
|
|
||||||
// Jansi
|
applicationDefaultJvmArgs = jvmArgs
|
||||||
// -> Force writing ANSI
|
|
||||||
"-Djansi.mode=force",
|
|
||||||
|
|
||||||
// sos!engine
|
|
||||||
// *none yet*
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue