-
Notifications
You must be signed in to change notification settings - Fork 91
/
build.gradle
58 lines (51 loc) · 1.42 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
/*
* Nextcloud Android Common Library
*
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2023 Unpublished <[email protected]>
* SPDX-FileCopyrightText: 2022 Tobias Kaminsky <[email protected]>
* SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <[email protected]>
* SPDX-FileCopyrightText: 2014-2016 ownCloud Inc.
* SPDX-FileCopyrightText: 2014 Marcello Steiner <[email protected]>
* SPDX-License-Identifier: MIT
*/
buildscript {
ext {
kotlin_version = '2.1.0'
jacoco_version = '0.8.12'
}
}
subprojects {
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
repositories {
google()
mavenCentral()
maven {
url "https://jitpack.io"
content {
includeGroup "com.github.bitfireAT"
}
}
}
}
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}"
}
}