forked from xmartlabs/gong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (48 loc) · 1.61 KB
/
build.gradle
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
// App version
versionName = '0.0.1' // X.Y.Z; X = Major, Y = minor, Z = Patch level
name = "Gong"
configPropertiesFile = file('config.properties') // All configurations are saved here
secretsPropertiesFile = file('secrets/keys.properties') // All secrets are saved here
}
buildscript {
apply from: 'versions.gradle'
addRepos(repositories)
dependencies {
classpath buildscriptDeps.dependencyUpdates
classpath buildscriptDeps.gradle
classpath buildscriptDeps.detekt
classpath buildscriptDeps.googleServices
classpath buildscriptDeps.kotlin
classpath buildscriptDeps.kotlinExtensions
}
}
apply from: rootProject.file('versions.gradle')
apply from: rootProject.file('scripts/dependency_updates.gradle')
apply from: rootProject.file('scripts/stop_ship_check_xmls.gradle.kts')
apply plugin: "io.gitlab.arturbosch.detekt"
dependencies {
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:$versions.detekt"
}
detekt {
autoCorrect = true
config = files("$rootDir/.detekt/detekt-config.yml")
input = files("app/src")
parallel = true
toolVersion = "$versions.detekt"
}
allprojects {
apply from: rootProject.file('versions.gradle')
addRepos(repositories)
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task check() {
dependsOn("checkStopShipXmls")
}
// `./gradlew wrapper --gradle-version=[version]` uses the distribution type all
wrapper {
distributionType = Wrapper.DistributionType.ALL
}