Skip to content

Commit 125a52d

Browse files
author
Farhan Arshad
committed
refactor: setup MavenPublication
1 parent ff944c6 commit 125a52d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

segment/build.gradle.kts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
alias(libs.plugins.android.library)
33
alias(libs.plugins.jetbrains.kotlin.android)
4+
`maven-publish`
45
}
56

67
android {
@@ -32,8 +33,31 @@ android {
3233
}
3334
}
3435

36+
publishing {
37+
publications {
38+
register<MavenPublication>("release") {
39+
groupId = "org.edx"
40+
artifactId = "segment-analytics"
41+
version = "1.0.0"
42+
43+
afterEvaluate {
44+
from(components["release"])
45+
}
46+
47+
// Include metadata if needed
48+
pom {
49+
name = "Segment Analytics Plugin"
50+
description =
51+
"This plugin aims to provide Segment analytics support for OpenEdX Application"
52+
url = "https://github.com/farhan-arshad-dev/edx-mobile-android-segment-analytics"
53+
}
54+
}
55+
}
56+
}
57+
3558
dependencies {
3659
implementation(libs.foundation)
60+
3761
implementation(libs.segment.analytics.kotlin)
3862
implementation(libs.segment.destination.firebase)
3963
implementation(libs.braze.segment.kotlin)

0 commit comments

Comments
 (0)