-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
121 lines (115 loc) · 5.44 KB
/
build.gradle.kts
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
/*
* Copyright (c) 2014-2021 MoEngage Inc.
*
* All rights reserved.
*
* Use of source code or binaries contained within MoEngage SDK is permitted only to enable use of the MoEngage platform by customers of MoEngage.
* Modification of source code and inclusion in mobile apps is explicitly allowed provided that all other conditions are met.
* Neither the name of MoEngage nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
* Redistribution of source code or binaries is disallowed except with specific prior written permission. Any such redistribution must retain the above copyright notice, this list of conditions and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
plugins {
`version-catalog`
`maven-publish`
signing
}
catalog {
versionCatalog {
library("core", "com.moengage", "moe-android-sdk").version("13.04.00")
library("cardsCore", "com.moengage", "cards-core").version("2.2.0")
library("cardsUi", "com.moengage", "cards-ui").version("2.3.0")
library("geofence", "com.moengage", "geofence").version("4.2.0")
library("inapp", "com.moengage", "inapp").version("8.5.0")
library("inboxCore", "com.moengage", "inbox-core").version("3.1.0")
library("inboxUi", "com.moengage", "inbox-ui").version("3.1.0")
library("pushKit", "com.moengage", "hms-pushkit").version("5.1.0")
library("pushAmp", "com.moengage", "push-amp").version("5.2.0")
library("deviceTrigger", "com.moengage", "realtime-trigger").version("3.3.0")
library("richNotification", "com.moengage", "rich-notification").version("5.1.0")
library("security", "com.moengage", "security").version("3.2.0")
library(
"moengageSegmentIntegration",
"com.moengage",
"moengage-segment-integration"
).version("6.5.8")
library("integrationVerifier", "com.moengage", "integration-verifier").version("5.2.0")
library(
"moengageSegmentKotlinDestination",
"com.moengage",
"moengage-segment-kotlin-destination"
).version("2.3.0")
library("encryptedStorage", "com.moengage", "encrypted-storage").version("2.1.0")
bundle(
"all", listOf(
"core",
"cardsCore",
"cardsUi",
"geofence",
"inapp",
"inboxUi",
"pushKit",
"pushAmp",
"deviceTrigger",
"richNotification",
"security",
"integrationVerifier",
"encryptedStorage"
)
)
bundle("storageEncryption", listOf("encryptedStorage", "security"))
}
}
val mavenCentralRepositoryUsername: String by project
val mavenCentralRepositoryPassword: String by project
val libVersion = "4.4.0"
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "com.moengage"
artifactId = "android-dependency-catalog"
version = libVersion
from(components["versionCatalog"])
pom {
name.set("MoEngage Android Dependency Catalog")
description.set("Dependency Catalog for MoEngage's Android SDK")
url.set("https://moengage.com")
licenses {
license {
name.set("MoEngage Platform Licence")
url.set("https://s3.amazonaws.com/licensesmoe/iplicense.txt")
}
}
developers {
developer {
id.set("moengage")
name.set("MoEngage")
email.set("[email protected]")
}
}
scm {
connection.set("scm:[email protected]:moengage/android-dependency-catalog.git")
developerConnection.set("scm:[email protected]:moengage/android-dependency-catalog.git")
url.set("https://moengage.com")
}
}
}
repositories {
maven {
credentials {
username = mavenCentralRepositoryUsername
password = mavenCentralRepositoryPassword
}
url = if (libVersion.endsWith("SNAPSHOT")) {
uri("https://oss.sonatype.org/content/repositories/snapshots/")
} else {
uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
}
}
}
}
}
signing {
sign(publishing.publications["maven"])
}