Skip to content

Commit 4d56546

Browse files
committed
add back ScalarsConverterFactory
1 parent c9c569a commit 4d56546

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

central-portal/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ plugins {
55
dependencies {
66
implementation(libs.okhttp)
77
implementation(libs.retrofit)
8+
implementation(libs.retrofit.converter.scalars)
89
}

central-portal/src/main/kotlin/com/vanniktech/maven/publish/portal/SonatypeCentralPortal.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import okhttp3.MultipartBody
88
import okhttp3.OkHttpClient
99
import okhttp3.RequestBody.Companion.asRequestBody
1010
import retrofit2.Retrofit
11+
import retrofit2.converter.scalars.ScalarsConverterFactory
1112

1213
public class SonatypeCentralPortal(
1314
private val baseUrl: String,
@@ -29,6 +30,7 @@ public class SonatypeCentralPortal(
2930
.Builder()
3031
.client(okHttpClient)
3132
.baseUrl(baseUrl)
33+
.addConverterFactory(ScalarsConverterFactory.create())
3234
.build()
3335

3436
retrofit.create(SonatypeCentralPortalService::class.java)

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref =
2121
kotlin-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
2222

2323
retrofit = "com.squareup.retrofit2:retrofit:3.0.0"
24+
retrofit-converter-scalars = "com.squareup.retrofit2:converter-scalars:3.0.0"
2425

2526
junit-jupiter = "org.junit.jupiter:junit-jupiter:5.13.3"
2627
junit-engine = { module = "org.junit.platform:junit-platform-engine", version.ref = "junit-platform" }

0 commit comments

Comments
 (0)