home-assistant-android/build.gradle.kts
2021-10-13 23:46:49 -04:00

46 lines
1.2 KiB
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.3")
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.8.0.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"
}
}
}
gradle.projectsEvaluated {
project(":app").tasks.matching { it.name.startsWith("publish") }.configureEach {
mustRunAfter(project(":wear").tasks.matching { it.name.startsWith("publish") })
}
}
tasks.register("clean").configure {
delete("build")
}
ktlint {
android.set(true)
}