Skip to content

Commit b1bb046

Browse files
authored
feat: deploy sdks to maven central (#173)
1 parent 36ce94e commit b1bb046

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

android-sdk/android/build.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,13 @@ publishing {
118118
}
119119

120120
repositories {
121-
// Note: this is temporary in local env
122-
maven(url = layout.buildDirectory.dir("maven-repo"))
121+
maven(url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
122+
name = "sonatype"
123+
credentials {
124+
username = (project.properties["ossrhUsername"] as String?)?: ""
125+
password = (project.properties["ossrhPassword"] as String?)?: ""
126+
}
127+
}
123128
}
124129
}
125130

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jose4j = "0.7.9"
1313
kotlin = "1.5.32"
1414
kover = "0.5.0"
1515
logbackClassic = "1.2.10"
16-
logtoSdk = "1.0.0"
16+
logtoSdk = "0.1.0"
1717
material = "1.4.0"
1818
mockk = "1.12.2"
1919
okhttp = "4.9.3"

kotlin-sdk/kotlin/build.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,13 @@ publishing {
8383
}
8484

8585
repositories {
86-
// Note: this is temporary in local env
87-
maven(url = layout.buildDirectory.dir("maven-repo"))
86+
maven(url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
87+
name = "sonatype"
88+
credentials {
89+
username = (project.properties["ossrhUsername"] as String?)?: ""
90+
password = (project.properties["ossrhPassword"] as String?)?: ""
91+
}
92+
}
8893
}
8994
}
9095

0 commit comments

Comments
 (0)