forked from home-assistant/android
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
45 lines (38 loc) · 1.17 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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)
}