Skip to content

Instantly share code, notes, and snippets.

@PaoloMilano
Created May 2, 2020 11:58
Show Gist options
  • Select an option

  • Save PaoloMilano/b6052a1b46962474015d7b434d8f2ebd to your computer and use it in GitHub Desktop.

Select an option

Save PaoloMilano/b6052a1b46962474015d7b434d8f2ebd to your computer and use it in GitHub Desktop.
apply plugin: 'java-gradle-plugin' // Allows us to create and configure custom plugins
apply plugin: 'kotlin' //Needed as we'll write our plugin in Kotlin
buildscript {
ext.kotlin_version = '1.3.71'
ext.gradle_version = '3.5.3'
repositories {
google()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.android.tools.build:gradle:$gradle_version"
}
}
repositories {
google()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// Android gradle plugin will allow us to access Android specific features
implementation "com.android.tools.build:gradle:$gradle_version"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment