-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
116 lines (100 loc) · 3.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
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
buildscript {
apply from: "${rootDir}/gradle/stdlib.gradle"
ext {
kotlinVersion = '1.5.21'
androidGradleVersion = '4.2.2'
coroutineVersion = '1.5.1'
// Google libraries
activityVersion = '1.3.1'
appCompatVersion = '1.3.1'
constraintLayoutVersion = '2.0.4'
materialComponentsVersion = '1.4.0'
roomVersion = '2.3.0'
fragmentVersion = '1.3.6'
lifecycleVersion = '2.3.1'
androidXCoreVersion = '2.1.0'
paletteKtxVersion = '1.0.0'
// Networking
gsonVersion = '2.8.7'
okhttpVersion = '4.9.1'
retrofitVersion = '2.9.0'
wireVersion = '3.7.0'
// Debug and quality control
binaryCompatibilityValidator = '0.6.0'
dokkaVersion = '1.5.0'
ktLintGradleVersion = '10.0.0'
leakcanaryVersion = '2.7'
// Testing
androidxTestCoreVersion = '1.4.0'
junitGradlePluignVersion = '1.7.1.1'
junitVersion = '5.7.2'
mockkVersion = '1.12.0'
robolectricVersion = '4.6.1'
truthVersion = '1.1.3'
vintageJunitVersion = '4.13'
// 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:1.5.30"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
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"
}
}
apply plugin: 'binary-compatibility-validator'
apply plugin: 'io.codearte.nexus-staging'
apiValidation {
ignoredProjects += ["sample"]
ignoredPackages += [
"com.chuckerteam.chucker.internal",
"com.chuckerteam.chucker.databinding",
"com.chucker.activity.databinding",
"com.chucker.logging.databinding"
]
}
allprojects {
version = VERSION_NAME
group = GROUP
repositories {
google()
mavenCentral()
jcenter {
content {
includeModule("org.jetbrains.trove4j", "trove4j")
includeModule("org.jetbrains.kotlinx", "kotlinx-html-jvm")
}
}
}
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 = 30
compileSdkVersion = 30
}
nexusStaging {
username = findProperty("NEXUS_USERNAME")
password = findProperty("NEXUS_PASSWORD")
stagingProfileId = "ea09119de9f4"
}