forked from getsentry/sentry-android-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
51 lines (43 loc) · 1.37 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
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"))
}
tasks.register("preMerge") {
description = "Runs all the tests/verification tasks on both top level and included build."
dependsOn(":examples:android-gradle:check")
dependsOn(":examples:android-gradle-kts:check")
dependsOn(":examples:android-ndk:check")
dependsOn(gradle.includedBuild("plugin-build").task(":check"))
}
tasks.register("closeAndReleaseRepository") {
description = "Runs closeAndReleaseRepository for plugin-build"
dependsOn(gradle.includedBuild("plugin-build").task(":closeAndReleaseRepository"))
}