Init Kotlin application with Gradle
This commit is contained in:
11
scripts/gradle-init-kotlin.sh
Executable file
11
scripts/gradle-init-kotlin.sh
Executable file
@@ -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 <project-name> <package>"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
gradle init --type kotlin-application --dsl kotlin --project-name "$1" --package "$2"
|
||||
|
||||
Reference in New Issue
Block a user