Skip to content

Commit

Permalink
Build: update the parameter for Sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Jan 24, 2025
1 parent c1975ee commit f55dda7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ tasks {
accessToken: String
): String {
// https://central.sonatype.org/publish/publish-portal-api/#uploading-a-deployment-bundle
val publicationType = if (isUserManaged) "USER_MANAGED" else "AUTOMATIC"
val uri = uriBase.trimEnd('/') + "/api/v1/publisher/upload?name=$deploymentName&publicationType=$publicationType"
val publishingType = if (isUserManaged) "USER_MANAGED" else "AUTOMATIC"
val uri = uriBase.trimEnd('/') + "/api/v1/publisher/upload?name=$deploymentName&publishingType=$publishingType"
val base64Auth = base64Auth(userName, accessToken)

println("Sending request to $uri...")
Expand Down

0 comments on commit f55dda7

Please sign in to comment.