@@ -147,7 +147,6 @@ tasks.register("closeAndReleaseMultipleRepositories") {
147147 }
148148
149149 println (" Starting to wait for artifacts to be available on Maven Central..." )
150- // Wait for artifacts to be available on Maven Central since we're using automatic publishing
151150 waitForArtifactsToBeAvailable()
152151 println (" closeAndReleaseMultipleRepositories task completed successfully!" )
153152 }
@@ -249,7 +248,7 @@ fun uploadRepositoriesToPortal(repositories: List<StagingRepository>) {
249248}
250249
251250fun uploadRepositoryToPortal (repositoryKey : String , maxRetries : Int = 3) {
252- val uploadUrl = " $manualApiUrl /upload/repository/$repositoryKey "
251+ val uploadUrl = " $manualApiUrl /upload/repository/$repositoryKey ?publishing_type=automatic "
253252 println (" Starting upload for repository: $repositoryKey " )
254253 println (" Upload URL: $uploadUrl " )
255254
@@ -260,8 +259,6 @@ fun uploadRepositoryToPortal(repositoryKey: String, maxRetries: Int = 3) {
260259 try {
261260 val httpPost = HttpPost (uploadUrl).apply {
262261 setHeader(" Authorization" , authHeader())
263- setHeader(" Content-Type" , " application/json" )
264- entity = StringEntity (""" {"publishing_type": "automatic"}""" )
265262 }
266263
267264 println (" Executing HTTP POST request (attempt ${attempt + 1 } /$maxRetries )..." )
@@ -400,4 +397,4 @@ private val artifactsToCheck = listOf(
400397 ArtifactCheck (" com/reown" , MODAL_CORE , MODAL_CORE_VERSION ),
401398 ArtifactCheck (" com/walletconnect" , PAY , PAY_VERSION ),
402399 ArtifactCheck (" com/walletconnect" , POS , POS_VERSION ),
403- )
400+ )
0 commit comments