home-assistant-android/build.gradle.kts
Nelson Osacky 010b63a5c3
Update to Gradle 6.7. (#1066)
Also enable Gradle parallel flag and caching flags.
2020-10-17 22:57:22 -04:00

45 lines
875 B
Plaintext

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
id("com.github.ben-manes.versions") version "0.33.0"
}
buildscript {
repositories {
google()
jcenter()
gradlePluginPortal()
}
dependencies {
classpath(Config.Plugin.android)
classpath(Config.Plugin.kotlin)
classpath(Config.Plugin.google)
classpath(Config.Plugin.appDistribution)
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)
}