forked from owncloud/android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (72 loc) · 1.98 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
buildscript {
ext {
// SDK
sdkCompileVersion = 33
sdkMinVersion = 21
sdkTargetVersion = 33
// Android jetpack
androidxArchCore = "2.2.0"
androidxLifecycle = "2.5.1"
androidxRoom = "2.5.1"
androidxCore = "1.9.0"
androidxFragment = "1.5.5"
androidxAppcompat = "1.5.1"
androidxLegacy = "1.0.0"
// Kotlin
orgJetbrainsKotlin = "1.8.10"
orgJetbrainsKotlinx = "1.6.4"
// Koin
ioInsertKoin = "3.3.3"
// Markwon
markwon = "4.6.2"
// Moshi
comSquareupMoshi = '1.14.0'
// Testing
ioMockk = "1.13.3"
junitVersion = "4.13.2"
androidxTestExt = "1.1.5"
androidxTest = "1.4.0"
androidxTestEspresso = "3.5.1"
androidxTestUiautomator = "2.2.0"
androidxAnnotation = "1.6.0"
}
repositories {
google()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.android.tools.build:gradle:7.4.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$orgJetbrainsKotlin"
classpath "org.jlleitschuh.gradle:ktlint-gradle:11.1.0"
}
}
plugins {
id "org.sonarqube" version "4.0.0.2929"
id 'com.google.devtools.ksp' version '1.8.10-1.0.9' 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()
}