Files
linux-workspace/scripts/gradle-init-kotlin.sh
2022-02-14 20:06:23 +01:00

13 lines
352 B
Bash
Executable File

#!/bin/bash
# https://docs.gradle.org/current/userguide/build_init_plugin.html#sec:kotlin_application
# https://docs.gradle.org/current/samples/sample_building_kotlin_applications.html
if [[ $# < 2 ]]; then
echo "Use: $0 <project-name> <package>"
exit 1;
fi
gradle init --type kotlin-application --dsl kotlin --project-name "$1" --package "$2"