From 2936c395464b7cf0c8179488cfdef711f53bea1c Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 8 Jun 2020 10:09:52 +0000 Subject: [PATCH 1/2] Added execute permission to linux script. --- gradlew | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 gradlew diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 From 6d3ae8b2d111df02e27b01e45a80702baed2f3e9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 8 Jun 2020 10:48:05 +0000 Subject: [PATCH 2/2] Added execute definition to start server directly from Gradle. --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index 01afb7b..0b90422 100644 --- a/build.gradle +++ b/build.gradle @@ -48,3 +48,9 @@ compileTestKotlin { jvmTarget = "1.8" } } + +task execute(type:JavaExec) { + main = project.hasProperty("mainClass") ? getProperty("mainClass") : "app.Main" + + classpath = sourceSets.main.runtimeClasspath +}