Kotlin + Gradle starter. Builds a fat jar or a GraalVM native binary, and logs the way Minecraft does (SLF4J + Log4j2).
Needs JDK 17+.
./gradlew build
java -jar build/libs/SimpleKotlin.jarNeeds GraalVM with GRAALVM_HOME set. On Windows you also need the Visual Studio Build Tools.
./gradlew nativeCompile
./build/native/nativeCompile/SimpleKotlinIf a library you add uses reflection, run the jar once with the tracing agent and copy what it finds into src/main/resources/META-INF/native-image/:
$GRAALVM_HOME/bin/java -agentlib:native-image-agent=config-output-dir=agent-out -jar build/libs/SimpleKotlin.jar