Skip to content

Commit 67d7799

Browse files
committed
setup maven central
1 parent bdc8d36 commit 67d7799

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
124124
maven-publish = { id = "maven-publish" }
125125
signing = { id = "signing" }
126126
kotlin-parcelize = { id = "kotlin-parcelize" }
127-
jacoco = { id = "jacoco" }
127+
jacoco = { id = "jacoco" }

lib/build.gradle.kts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ dependencies {
109109
api(libs.w3w.android.design)
110110
api(libs.w3w.core.android)
111111

112-
api(platform(libs.compose.bom))
113112
implementation(libs.compose.runtime)
114113
implementation(libs.compose.ui)
115114
implementation(libs.compose.ui.tooling)
@@ -189,6 +188,15 @@ publishing {
189188
}
190189
artifact(dokkaJar)
191190
pom {
191+
withXml {
192+
val root = asNode()
193+
/** 3️⃣ Declare the Google Maven repository */
194+
val repos = root.appendNode("repositories")
195+
val repo = repos.appendNode("repository")
196+
repo.appendNode("id", "google")
197+
repo.appendNode("name", "Google Maven")
198+
repo.appendNode("url", "https://maven.google.com")
199+
}
192200
name.set("w3w-android-ocr-components")
193201
description.set("Android OCR UI Components that work with Google MLKit")
194202
url.set("https://github.com/what3words/w3w-android-ocr-components")

0 commit comments

Comments
 (0)