home-assistant-android/build.gradle.kts
Nelson Osacky 2767952bc3
Update to Gradle 7.2 (#1726)
* Update to Gradle 7.2

Also update other plugins

* Fix ktlint violations
2021-09-30 20:37:51 -04:00

40 lines
988 B
Plaintext

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jlleitschuh.gradle.ktlint") version "10.2.0"
id("com.github.ben-manes.versions") version "0.39.0"
}
buildscript {
repositories {
google()
gradlePluginPortal()
}
dependencies {
classpath("com.android.tools.build:gradle:7.0.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31")
classpath("com.google.gms:google-services:4.3.10")
classpath("com.google.firebase:firebase-appdistribution-gradle:2.2.0")
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.6.2.0")
classpath("com.github.triplet.gradle:play-publisher:3.6.0")
}
}
allprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "11"
}
}
}
tasks.register("clean").configure {
delete("build")
}
ktlint {
android.set(true)
}