mirror of
https://github.com/home-assistant/android
synced 2024-10-15 20:43:06 +00:00
2767952bc3
* Update to Gradle 7.2 Also update other plugins * Fix ktlint violations
40 lines
988 B
Plaintext
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)
|
|
}
|