-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
build.gradle
54 lines (47 loc) · 1.12 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
buildscript {
ext {
// SDK
sdkCompileVersion = 34
sdkMinVersion = 24
sdkTargetVersion = 34
}
repositories {
google()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath libs.android.gradlePlugin
classpath libs.kotlin.gradlePlugin
classpath libs.ktlint.gradlePlugin
}
}
plugins {
alias libs.plugins.sonarqube
alias libs.plugins.ksp apply false
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://jitpack.io"
}
}
}
subprojects {
apply plugin: "com.google.devtools.ksp"
apply plugin: "org.jlleitschuh.gradle.ktlint"
apply plugin: "org.sonarqube"
}
sonarqube {
properties {
property "sonar.projectKey", "owncloud_android"
property "sonar.organization", "owncloud-1"
property "sonar.projectVersion", getBranchName()
property "sonar.host.url", "https://sonarcloud.io"
}
}
def getBranchName() {
def name = "git rev-parse --abbrev-ref HEAD".execute()
return name.text.toString().trim()
}