forked from GetStream/stream-chat-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
135 lines (117 loc) · 3.97 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import io.getstream.chat.android.Dependencies
import io.getstream.chat.android.command.changelog.plugin.ChangelogReleaseSectionPlugin
import io.getstream.chat.android.command.release.plugin.ReleasePlugin
import io.getstream.chat.android.command.unittest.plugin.UnitTestsPlugin
import io.getstream.chat.android.command.version.plugin.VersionBumpPlugin
import io.getstream.chat.android.command.version.plugin.MinorBumpPlugin
import io.getstream.chat.android.command.version.plugin.VersionPrintPlugin
import io.getstream.chat.android.command.changelog.plugin.ChangelogAddModelSectionPlugin
apply plugin: "com.github.ben-manes.versions"
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'binary-compatibility-validator'
apply plugin: 'org.jetbrains.dokka'
apply from: "${rootDir}/scripts/sample-app-versioner.gradle"
apply plugin: UnitTestsPlugin
apply plugin: ReleasePlugin
apply plugin: ChangelogReleaseSectionPlugin
apply plugin: VersionBumpPlugin
apply plugin: MinorBumpPlugin
apply plugin: VersionPrintPlugin
apply plugin: ChangelogAddModelSectionPlugin
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
mavenCentral()
maven {
url 'https://developer.huawei.com/repo/'
content {
includeGroup("com.huawei.agconnect")
}
}
}
dependencies {
classpath Dependencies.androidGradlePlugin
classpath Dependencies.kotlinGradlePlugin
classpath Dependencies.googleServicesPlugin
classpath Dependencies.androidJunit5GradlePlugin
classpath Dependencies.gitversionerPlugin
classpath Dependencies.firebaseCrashlyticsPlugin
classpath Dependencies.gradleVersionsPlugin
classpath Dependencies.navigationSafeArgsGradlePlugin
classpath Dependencies.gradleNexusPublishPlugin
classpath Dependencies.dokka
classpath Dependencies.kotlinBinaryValidator
classpath Dependencies.huaweiPlugin
classpath Dependencies.shot
classpath Dependencies.spotlessGradlePlugin
classpath Dependencies.ksp
classpath Dependencies.detektPlugin
}
}
subprojects {
if (it.name != 'stream-chat-android-docs'
&& it.buildFile.exists()) {
apply from: "${rootDir}/spotless/spotless.gradle"
}
apply plugin: "io.gitlab.arturbosch.detekt"
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://jitpack.io"
content {
includeModule("com.github.chrisbanes", "PhotoView")
// https://github.com/stfalcon-studio/StfalconImageViewer/issues/69
includeModule("com.github.stfalcon-studio", "StfalconImageViewer")
}
}
}
}
versionPrint {
printFilePath = "temp-version"
}
unitTestDebugScript {
outputPath = "unit-tests-command.sh"
}
releaseScript {
changelogPath = "CHANGELOG.md"
}
changelogReleaseSection {
changelogPath = "CHANGELOG.md"
}
changelogAddModelSection {
changelogPath = "CHANGELOG.md"
changelogModel = "CHANGELOG_MODEL.md"
}
task clean(type: Delete) {
delete rootProject.buildDir
}
dependencyUpdates {
rejectVersionIf {
Dependencies.isStable(it.currentVersion) && Dependencies.isNonStable(it.candidate.version)
}
}
apiValidation {
ignoredPackages += [
'com/getstream/sdk/chat/databinding',
'io/getstream/chat/android/ui/databinding',
]
ignoredProjects += [
'stream-chat-android-docs',
'stream-chat-android-ui-components-sample',
'stream-chat-android-test',
'stream-chat-android-compose-sample',
'libraries',
'logging',
'stream-logger',
'stream-logger-file',
'stream-logger-android',
]
nonPublicMarkers += [
'io.getstream.chat.android.core.internal.InternalStreamChatApi',
]
}
apply from: "${rootDir}/scripts/publish-root.gradle"