-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
55 lines (46 loc) · 1.37 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
buildscript {
ext {
daggerVersion = "2.48.1"
kotlinVersion = "1.8.22"
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.library' version '8.1.4' apply false
id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false
id "org.jetbrains.kotlin.kapt" version "$kotlinVersion" apply false
id "com.diffplug.spotless" version "6.22.0" apply false
id 'io.gitlab.arturbosch.detekt' version '1.23.4' apply false
id 'com.android.application' version '8.1.4' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task installGitHooks(type: Copy, group: "development") {
def sourceFolder = "${rootProject.projectDir}/scripts/hooks"
def destFolder = "${rootProject.projectDir}/.git/hooks"
description = "Install git hooks"
from(sourceFolder) {
include '*'
}
into destFolder
eachFile { file ->
println "${sourceFolder}/${file.relativeSourcePath} -> ${destFolder}/${file.path}"
}
}
allprojects {
group = 'com.nextcloud.android-common'
}
subprojects {
apply plugin: 'com.diffplug.spotless'
apply plugin: 'io.gitlab.arturbosch.detekt'
spotless {
kotlin {
target '**/*.kt'
ktlint()
}
}
detekt {
buildUponDefaultConfig = true
}
}