From 0b6e3ac6a43494c0f669099d97edbc17b94e3261 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 25 Jun 2024 00:52:51 +0300 Subject: [PATCH] Fixed issue with run again (#10) --- build.gradle.kts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index fc4d3ed..99fa2c3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -47,20 +47,21 @@ tasks { attributes["Main-Class"] = "me.koply.pikap.Main" } } - javaexec { - classpath = sourceSets.main.get().runtimeClasspath - mainClass = application.mainClass + + named("run") { standardInput = System.`in` - jvmArgs(application.applicationDefaultJvmArgs) } + shadowJar { minimize { exclude(dependency(libs.org.xerial.sqlite.jdbc.get())) } } + compileJava { options.encoding = Charsets.UTF_8.name() } + javadoc { options.encoding = Charsets.UTF_8.name() }