forked from ChuckerTeam/chucker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
117 lines (101 loc) · 3.26 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
buildscript {
ext {
kotlinVersion = '1.8.22'
androidGradleVersion = '8.1.0'
coroutineVersion = '1.7.3'
// Google libraries
activityVersion = '1.7.2'
appCompatVersion = '1.6.1'
constraintLayoutVersion = '2.1.4'
materialComponentsVersion = '1.9.0'
fragmentVersion = '1.6.1'
roomVersion = '2.5.2'
lifecycleVersion = '2.6.1'
androidXCoreVersion = '2.2.0'
paletteKtxVersion = '1.0.0'
kspVersion = '1.8.22-1.0.11'
// Networking
brotliVersion = '0.1.2'
gsonVersion = '2.10.1'
okhttpVersion = '4.11.0'
retrofitVersion = '2.9.0'
wireVersion = '4.8.0'
// Debug and quality control
binaryCompatibilityValidator = '0.13.2'
detektVersion = '1.23.1'
ktLintGradleVersion = '11.5.0'
leakcanaryVersion = '2.12'
// Apollo
apolloVersion = '3.8.2'
// Testing
androidxTestCoreVersion = '1.5.0'
junitGradlePluignVersion = '1.9.3.0'
junitVersion = '5.10.0'
junit4Version = '4.13.2'
mockkVersion = '1.13.5'
robolectricVersion = '4.10.3'
truthVersion = '1.1.5'
androidXTestRunner = '1.5.2'
androidXTestRules = '1.5.0'
androidXTestExt = '1.1.5'
// Publishing
nexusStagingPlugin = '0.30.0'
}
repositories {
google()
gradlePluginPortal()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidGradleVersion"
classpath "de.mannodermaus.gradle.plugins:android-junit5:$junitGradlePluignVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.apollographql.apollo3:apollo-gradle-plugin:$apolloVersion"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektVersion"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktLintGradleVersion"
classpath "org.jetbrains.kotlinx:binary-compatibility-validator:$binaryCompatibilityValidator"
classpath "com.squareup.wire:wire-gradle-plugin:$wireVersion"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:$nexusStagingPlugin"
classpath "com.google.devtools.ksp:symbol-processing-gradle-plugin:$kspVersion"
}
}
apply plugin: 'binary-compatibility-validator'
apply plugin: 'io.codearte.nexus-staging'
apiValidation {
ignoredProjects += ["sample"]
ignoredPackages += [
"com.chuckerteam.chucker.internal",
"com.chuckerteam.chucker.databinding"
]
}
allprojects {
version = VERSION_NAME
group = GROUP
repositories {
google()
mavenCentral()
}
tasks.withType(Test) {
testLogging {
events "skipped", "failed", "passed"
}
}
}
task installGitHook(type: Copy) {
from new File(rootProject.rootDir, 'pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
task clean(type: Delete) {
dependsOn(installGitHook)
delete rootProject.buildDir
}
ext {
minSdkVersion = 21
targetSdkVersion = 33
compileSdkVersion = 33
}
nexusStaging {
username = findProperty("NEXUS_USERNAME")
password = findProperty("NEXUS_PASSWORD")
stagingProfileId = "ea09119de9f4"
}