Add Shadow, jvm.args prop, coroutines, fix stdin
This commit is contained in:
parent
ee23d7739d
commit
407c601f88
3 changed files with 14 additions and 0 deletions
|
@ -154,6 +154,7 @@ allprojects {
|
||||||
dependencies {
|
dependencies {
|
||||||
// Kotlin support
|
// Kotlin support
|
||||||
implementation("${property("dependencyKotlin_ReflectIdentifier") as String}:${property("dependencyKotlinVersion") as String}")
|
implementation("${property("dependencyKotlin_ReflectIdentifier") as String}:${property("dependencyKotlinVersion") as String}")
|
||||||
|
implementation("${property("dependencyKotlin_CoroutinesIdentifier") as String}:${property("dependencyKotlin_CoroutinesVersion") as String}")
|
||||||
implementation("${property("dependencyKotlin_DateTimeIdentifier") as String}:${property("dependencyKotlin_DateTimeVersion") as String}")
|
implementation("${property("dependencyKotlin_DateTimeIdentifier") as String}:${property("dependencyKotlin_DateTimeVersion") as String}")
|
||||||
|
|
||||||
// Unit testing
|
// Unit testing
|
||||||
|
|
|
@ -53,6 +53,8 @@ languageKotlin=2.0
|
||||||
# Dependencies
|
# Dependencies
|
||||||
dependencyKotlinVersion=2.0.21
|
dependencyKotlinVersion=2.0.21
|
||||||
dependencyKotlin_ReflectIdentifier=org.jetbrains.kotlin:kotlin-reflect
|
dependencyKotlin_ReflectIdentifier=org.jetbrains.kotlin:kotlin-reflect
|
||||||
|
dependencyKotlin_CoroutinesIdentifier=org.jetbrains.kotlinx:kotlinx-coroutines-core
|
||||||
|
dependencyKotlin_CoroutinesVersion=1.10.1
|
||||||
dependencyKotlin_DateTimeIdentifier=org.jetbrains.kotlinx:kotlinx-datetime
|
dependencyKotlin_DateTimeIdentifier=org.jetbrains.kotlinx:kotlinx-datetime
|
||||||
dependencyKotlin_DateTimeVersion=0.6.1
|
dependencyKotlin_DateTimeVersion=0.6.1
|
||||||
dependencyOshiIdentifier=com.github.oshi:oshi-core-java11
|
dependencyOshiIdentifier=com.github.oshi:oshi-core-java11
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
id("application")
|
id("application")
|
||||||
id("org.mikeneck.graalvm-native-image") version("v1.4.0")
|
id("org.mikeneck.graalvm-native-image") version("v1.4.0")
|
||||||
|
id("com.gradleup.shadow") version ("8.3.5")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
|
@ -72,11 +73,21 @@ application {
|
||||||
"g1" -> add("-XX:+UseG1GC")
|
"g1" -> add("-XX:+UseG1GC")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -> Manually added settings
|
||||||
|
if (hasProperty("jvm.args"))
|
||||||
|
addAll((property("jvm.args") as String).split(" "))
|
||||||
|
|
||||||
|
|
||||||
// Jansi
|
// Jansi
|
||||||
add("-Djansi.mode=force")
|
add("-Djansi.mode=force")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fix stdin
|
||||||
|
tasks.withType(JavaExec::class) {
|
||||||
|
standardInput = System.`in`
|
||||||
|
}
|
||||||
|
|
||||||
// GraalVM native-image
|
// GraalVM native-image
|
||||||
nativeImage {
|
nativeImage {
|
||||||
outputs.upToDateWhen { true }
|
outputs.upToDateWhen { true }
|
||||||
|
|
Loading…
Reference in a new issue