-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
build.gradle.kts
59 lines (50 loc) · 1.78 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
51
52
53
54
55
56
57
58
59
plugins {
kotlin("jvm") version BuildPluginsVersion.KOTLIN apply false
id("com.android.application") version BuildPluginsVersion.AGP apply false
id("org.jlleitschuh.gradle.ktlint") version BuildPluginsVersion.KTLINT
}
allprojects {
repositories {
google()
mavenCentral()
}
}
subprojects {
apply {
plugin("org.jlleitschuh.gradle.ktlint")
}
ktlint {
debug.set(false)
verbose.set(true)
android.set(true)
outputToConsole.set(true)
ignoreFailures.set(false)
enableExperimentalRules.set(true)
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
}
tasks.register("clean", Delete::class.java) {
delete(rootProject.buildDir)
dependsOn(gradle.includedBuild("plugin-build").task(":clean"))
dependsOn(gradle.includedBuild("sentry-kotlin-compiler-plugin").task(":clean"))
}
tasks.register("preMerge") {
description = "Runs all the tests/verification tasks on both top level and included build."
dependsOn(gradle.includedBuild("sentry-kotlin-compiler-plugin").task(":check"))
dependsOn(gradle.includedBuild("sentry-kotlin-compiler-plugin").task(":publishAllPublicationsToMavenTestRepoRepository"))
dependsOn(":examples:android-gradle:check")
dependsOn(":examples:android-gradle-kts:check")
dependsOn(":examples:android-ndk:check")
dependsOn(":examples:android-instrumentation-sample:check")
dependsOn(":examples:android-room-lib:check")
dependsOn(gradle.includedBuild("plugin-build").task(":check"))
}
tasks.getByName("ktlintFormat") {
dependsOn(gradle.includedBuild("plugin-build").task(":ktlintFormat"))
}
tasks.getByName("ktlintCheck") {
dependsOn(gradle.includedBuild("plugin-build").task(":ktlintCheck"))
}