forked from home-assistant/android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (39 loc) · 1.24 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
46
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
id("com.github.ben-manes.versions") version "0.44.0"
}
buildscript {
repositories {
google()
gradlePluginPortal()
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20")
classpath("com.google.gms:google-services:4.3.14")
classpath("com.google.firebase:firebase-appdistribution-gradle:3.1.1")
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.8.2.1")
classpath("com.github.triplet.gradle:play-publisher:3.7.0")
classpath("com.google.dagger:hilt-android-gradle-plugin:2.44.2")
}
}
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)
}