Skip to content

Instantly share code, notes, and snippets.

@ramonrabello
Last active January 22, 2018 12:33
Show Gist options
  • Save ramonrabello/02f2ee6cb7f0e5f8607ccf465618fd88 to your computer and use it in GitHub Desktop.
Save ramonrabello/02f2ee6cb7f0e5f8607ccf465618fd88 to your computer and use it in GitHub Desktop.
project module build.gradle with Kotlin
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.20'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment