-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
50 lines (44 loc) · 1.13 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
47
48
49
50
plugins {
id("org.jlleitschuh.gradle.ktlint") version "8.2.0"
}
ktlint {
version.set("0.34.2")
debug.set(true)
verbose.set(true)
android.set(false)
outputToConsole.set(true)
// reporters.set(setOf(ReporterType.PLAIN, ReporterType.CHECKSTYLE))
ignoreFailures.set(true)
kotlinScriptAdditionalPaths {
include(fileTree("scripts/"))
}
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath(dependencyNotation = "com.android.tools.build:gradle:7.1.0-alpha03")
classpath(kotlin(module = "gradle-plugin", version = "1.5.31"))
classpath(dependencyNotation = "com.google.dagger:hilt-android-gradle-plugin:2.40")
classpath(dependencyNotation = "com.google.gms:google-services:4.3.10")
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}