-
Notifications
You must be signed in to change notification settings - Fork 277
/
build.gradle
137 lines (119 loc) · 4.45 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
136
137
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 {
// fetch plugins from google maven (https://maven.google.com)
google() {
content {
includeGroupByRegex("androidx\\..*")
includeGroupByRegex("com\\.android(\\..*|)")
includeGroupByRegex("com\\.google\\.android\\..*")
includeGroupByRegex("com\\.google\\.firebase(\\..*|)")
includeGroupByRegex("com\\.google\\.gms(\\..*|)")
includeGroupByRegex("com\\.google\\.mlkit")
includeGroupByRegex("com\\.google\\.oboe")
includeGroupByRegex("com\\.google\\.prefab")
includeGroupByRegex("com\\.google\\.testing\\.platform")
}
mavenContent {
releasesOnly()
}
}
maven {
url "https://jitpack.io"
content {
includeModule("com.github.passsy", "gradle-gitVersioner-plugin")
}
}
// fetch plugins from gradle plugin portal (https://plugins.gradle.org)
gradlePluginPortal()
// Fallback for the rest of the dependencies
mavenCentral()
}
dependencies {
classpath Dependencies.androidGradlePlugin
classpath Dependencies.kotlinGradlePlugin
classpath Dependencies.composeCompilerPlugin
classpath Dependencies.googleServicesPlugin
classpath Dependencies.androidJunit5GradlePlugin
classpath Dependencies.gitversionerPlugin
classpath Dependencies.firebaseCrashlyticsPlugin
classpath Dependencies.gradleVersionsPlugin
classpath Dependencies.navigationSafeArgsGradlePlugin
classpath Dependencies.gradleNexusPublishPlugin
classpath Dependencies.paparazziPlugin
classpath Dependencies.baselineProfilePlugin
classpath Dependencies.dokka
classpath Dependencies.kotlinBinaryValidator
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"
}
versionPrint {
printFilePath = "build/tmp/temp-version"
}
unitTestDebugScript {
outputPath = "build/tmp/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',
'stream-chat-android-ui-guides',
]
nonPublicMarkers += [
'io.getstream.chat.android.core.internal.InternalStreamChatApi',
]
}
apply from: "${rootDir}/scripts/publish-root.gradle"