-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.gradle
More file actions
51 lines (42 loc) · 1.47 KB
/
build.gradle
File metadata and controls
51 lines (42 loc) · 1.47 KB
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
import io.gitlab.arturbosch.detekt.Detekt
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
dependencies {
classpath libs.agp.buildscript
classpath libs.kotlin.gradle
classpath libs.nexus.staging
}
}
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.nexus.publish) apply false
alias(libs.plugins.detekt)
}
tasks.withType(Detekt).configureEach {
// Files to analyze
setSource(files(rootProject.rootDir))
// Configuration
config.setFrom(files("$projectDir/detekt.yml"))
allRules = true
buildUponDefaultConfig = true
reports {
html.required.set(true)
html.outputLocation.set(layout.buildDirectory.file("reports/detekt/detekt-report.html"))
xml.required.set(true)
xml.outputLocation.set(layout.buildDirectory.file("reports/detekt/detekt-checkstyle.xml"))
}
}
tasks.register('clean', Delete) {
delete rootProject.layout.buildDirectory
}
allprojects {
group = 'com.telefonica.nestedscrollwebview'
if (System.getProperty("SNAPSHOT_VERSION") != null) {
version = System.getProperty("SNAPSHOT_VERSION")+"-SNAPSHOT"
} else {
version = System.getProperty("LIBRARY_VERSION") ?: "undefined"
}
}
apply from: "${rootProject.projectDir}/publish_maven_central.gradle"