From 817851149632140a83e522390e0542e3bd490caf Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Sat, 12 Feb 2022 09:04:00 +0100 Subject: [PATCH] Init Kotlin application with Gradle --- scripts/gradle-init-kotlin.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/gradle-init-kotlin.sh diff --git a/scripts/gradle-init-kotlin.sh b/scripts/gradle-init-kotlin.sh new file mode 100755 index 0000000..b4e7add --- /dev/null +++ b/scripts/gradle-init-kotlin.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# https://docs.gradle.org/current/userguide/build_init_plugin.html#sec:kotlin_application + +if [[ $# < 2 ]]; then + echo "Use: $0 " + exit 1; +fi + +gradle init --type kotlin-application --dsl kotlin --project-name "$1" --package "$2" +