Skip to content

Commit

Permalink
Add AUTOMATIC parameter because the default value seems to be ignored (
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd authored Nov 3, 2024
1 parent fa174a1 commit 7b7bee5
Showing 1 changed file with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,23 @@ import DeploymentResponseFilesDeploymentState
import auth.BearerAuthAuth
import client.checkStatus
import client.uploadComponents
import io.ktor.client.HttpClient
import io.ktor.client.engine.java.Java
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.client.plugins.defaultRequest
import io.ktor.client.plugins.logging.LogLevel
import io.ktor.client.plugins.logging.Logger
import io.ktor.client.plugins.logging.Logging
import io.ktor.client.request.bearerAuth
import io.ktor.client.request.forms.MultiPartFormDataContent
import io.ktor.client.request.forms.append
import io.ktor.client.request.forms.formData
import io.ktor.client.request.setBody
import io.ktor.http.ContentType.Application
import io.ktor.serialization.kotlinx.json.json
import io.ktor.util.encodeBase64
import io.ktor.client.*
import io.ktor.client.engine.java.*
import io.ktor.client.plugins.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.plugins.logging.*
import io.ktor.client.request.*
import io.ktor.client.request.forms.*
import io.ktor.http.ContentType.*
import io.ktor.serialization.kotlinx.json.*
import io.ktor.util.*
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import kotlinx.io.asSource
import org.gradle.api.DefaultTask
import org.gradle.api.artifacts.repositories.PasswordCredentials
import org.gradle.api.file.ConfigurableFileCollection
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.logging.Logging as GradleLogging
import org.gradle.api.provider.Property
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.*
Expand All @@ -37,6 +31,7 @@ import org.gradle.workers.WorkParameters
import org.gradle.workers.WorkerExecutor
import javax.inject.Inject
import kotlin.time.Duration.Companion.seconds
import org.gradle.api.logging.Logging as GradleLogging

@DisableCachingByDefault
abstract class PublishToMavenCentral : DefaultTask() {
Expand Down Expand Up @@ -115,6 +110,7 @@ internal abstract class PublishWorker : WorkAction<PublishWorker.PublishParamete
transferFrom(zipFile.inputStream().asSource())
}
}))
parameter("publishingType", "AUTOMATIC")
}
while (true) {
delay(1.seconds)
Expand Down

0 comments on commit 7b7bee5

Please sign in to comment.