Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kotlin-gradle multimodule setup
#!/usr/bin/env bash
app_name=$1
kotlin_version=$2
mdir $app_name
cd $app_name
gradle init --dsl kotlin
mkdir -p buildSrc/src/main/kotlin
cat >buildSrc/build.gradle.kts <<'EOL'
plugins {
`kotlin-dsl`
}
...
EOL
cat >buildSrc/src/main/kotlin/Dependencies.kt <<'EOL'
object Versions {
val kotlin="$2"
}
...
EOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment