-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
64 lines (54 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
58
59
60
61
62
63
64
/*
* Nextcloud Android Common Library
*
* SPDX-FileCopyrightText: 2022-2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: MIT
*/
buildscript {
ext {
daggerVersion = "2.51.1"
kotlinVersion = "2.0.0"
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'org.jetbrains.kotlin.plugin.compose' version '2.0.0' apply false
id 'com.android.library' version '8.4.1' 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.25.0" apply false
id 'io.gitlab.arturbosch.detekt' version '1.23.6' apply false
id 'com.android.application' version '8.4.1' apply false
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
tasks.register('installGitHooks', Copy) {
def sourceFolder = "${rootProject.projectDir}/scripts/hooks"
def destFolder = "${rootProject.projectDir}/.git/hooks"
description = "Install git hooks"
group = "development"
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
}
}