-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (60 loc) · 1.82 KB
/
build.gradle
File metadata and controls
69 lines (60 loc) · 1.82 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* Nextcloud Android Common Library
*
* SPDX-FileCopyrightText: 2022-2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: MIT
*/
buildscript {
ext {
daggerVersion = "2.59.2"
kotlinVersion = "2.3.21"
jUnitVersion = "4.13.2"
androidXTestVersion = "1.3.0"
androidXEspressoTestVersion = "3.7.0"
mockkVersion = "1.14.9"
mockitoVersion = "5.23.0"
mockitoKotlinVersion = "6.3.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.3.21' apply false
id 'com.android.library' version '9.2.0' apply false
id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false
id 'com.android.legacy-kapt' version '9.2.0' apply false
id 'com.diffplug.spotless' version '8.4.0' apply false
id 'io.gitlab.arturbosch.detekt' version '1.23.8' apply false
id 'com.android.application' version '9.2.0' 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
}
}