home-assistant-android/build.gradle.kts
Nelson Osacky 46dde1912e
Remove redundant buildscript declaration (#1029)
Update Gradle to 6.6.1, AGP to 4.0.2
Declare root project name
Use lazy task configuration
2020-10-11 13:38:46 -04:00

45 lines
875 B
Plaintext

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
}
buildscript {
repositories {
google()
jcenter()
maven(url = Config.Repository.gradle)
}
dependencies {
classpath(Config.Plugin.android)
classpath(Config.Plugin.kotlin)
classpath(Config.Plugin.google)
classpath(Config.Plugin.appDistribution)
classpath(Config.Plugin.ktlint)
classpath(Config.Plugin.androidJunit5)
}
}
allprojects {
repositories {
google()
jcenter()
}
apply(plugin = "org.jlleitschuh.gradle.ktlint")
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
tasks.register("clean").configure {
delete("build")
}
ktlint {
android.set(true)
}