forked from owncloud/android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (74 loc) · 2.01 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
buildscript {
ext {
// SDK
sdkCompileVersion = 31
sdkMinVersion = 21
sdkTargetVersion = 31
// Android jetpack
archLifecycleVersion = "2.1.0"
roomVersion = "2.4.2"
appCompat = "1.4.1"
sqliteVersion = "2.2.0"
lifecycleLiveData = "2.4.1"
biometricVersion="1.1.0"
androidX = '1.0.0'
// Kotlin
kotlinVersion = "1.6.21"
coroutinesVersion = "1.6.1"
// Koin
koinVersion = '3.1.6'
// Testing
mockkVersion = '1.12.3'
junitVersion = "4.13.2"
extJunitVersion = '1.1.3'
androidTestVersion = '1.4.0'
espressoTestVersion = '3.4.0'
fragmentTestVersion = "1.1.0"
uiAutomatorTestVersion = "2.2.0"
annotationTestVersion = "1.3.0"
// Extensions
ktxVersion = "1.1.0"
// KTX extensions
ktxCoreVersion = "1.7.0"
ktxViewModelVersion = "2.4.0"
ktxFragmentVersion = "1.4.1"
ktxLiveData = "2.1.0"
}
repositories {
google()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.3.0"
}
}
plugins {
id "org.sonarqube" version "3.3"
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://jitpack.io"
}
}
}
subprojects {
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()
}