This repository was archived by the owner on Mar 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
133 lines (110 loc) · 3.49 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
buildscript {
apply from: gradle.dolbyio.files.modules
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
dependencies {
classpath dolbyio.android.gradlePlugin
classpath dolbyio.nexus.gradlePlugin
classpath dolbyio.kotlin.gradlePlugin
classpath dolbyio.sonarqube.gradlePlugin
classpath dolbyio.license.gradlePlugin
classpath dolbyio.gradle.versions.plugin
classpath dolbyio.version.catalog.update.plugin
classpath dolbyio.hilt.gradle
classpath dolbyio.mkdocs.gradlePlugin
classpath dolbyio.dokka.gradlePlugin
}
}
plugins {
alias(dolbyio.plugins.dokka)
alias(dolbyio.plugins.publish.nexus)
}
apply from: gradle.dolbyio.files.dependencyUpdates
def modules_sdk = [
// main module
'uxkit',
// firebase support
'uxkit-firebase',
// in conference specific "presentation"
'uxkit-exoplayer-support', 'uxkit-youtube', 'uxkit-screenshare',
// plugins related to services and system info
'uxkit-incoming-call', 'uxkit-self-managed-call', 'uxkit-system-service',
// common module
'uxkit-common',
]
ext {
groupId = "io.dolby"
pom = [
description: "Dolby.io Communications APIs library module",
inceptionYear: "${new Date().format("YYYY")}",
url: "https://github.com/voxeet/voxeet-sdk-android-gradle",
license: [
name: 'MIT License',
url: 'https://github.com/voxeet/voxeet-sdk-android-gradle/blob/main/LICENSE'
],
developer: [
id: 'dolbyio',
name: 'Dolby.io',
email: '[email protected]'
],
scm: [
connection: 'scm:git:github.com/voxeet/voxeet-uxkit-android.git',
developerConnection: 'scm:git:ssh://github.com/voxeet/voxeet-uxkit-android.git',
url: 'https://github.com/voxeet/voxeet-uxkit-android/tree/main'
]
]
}
apply from: "./uxkit.gradle"
apply from: "./sdk.gradle"
group = ext.groupId
nexusPublishing {
repositories {
sonatype {
// override default urls as default are oss.sonatype.org
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
allprojects {
repositories {
mavenLocal()
google()
mavenCentral()
}
}
subprojects {
task allDeps(type: DependencyReportTask) {}
if (isSourcesModule(it)) {
apply from: gradle.dolbyio.files.moduleSetup
}
}
task cleanAll {
dependsOn = modules_sdk.collect { ":${it}:clean" }
}
task assembleAll {
dependsOn = modules_sdk.collect { ":${it}:assembleRelease" }
}
task licenseAll {
dependsOn = modules_sdk.collect { ":${it}:licenseReleaseReport" }
modules_sdk.collect { "${it}/src/main/assets" }
.each { folder -> new File(folder).mkdirs() }
modules_sdk.each { name ->
def report = "${name}/build/reports/licenses/licenseReleaseReport.json"
def new_report = "${name}/build/reports/licenses/${name}.json"
new File(report).renameTo(new File(new_report))
copy { from new_report into "${name}/src/main/assets/" }
}
}
task installAll {
dependsOn = modules_sdk.collect { ":${it}:publishToMavenLocal" }
}
task uploadAll {
dependsOn = modules_sdk.collect { ":${it}:publish" }
}
task clean(type: Delete) {
delete rootProject.buildDir
}