Skip to content

Commit

Permalink
Change sonatype central client dependency to use upickle instead of z…
Browse files Browse the repository at this point in the history
…io-json (#504)

* Change .gitignore to facilitate vscode and metals usage

* Change sonatype central client dependency to remove zio-json dependency

Changes zio-json dependency to upickle
  • Loading branch information
KacperFKorban authored Aug 10, 2024
1 parent baacc3f commit c945ea0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ project/plugins/project/
.scala_dependencies
.idea*
.bsp
.vscode/
.bloop/
.metals/
metals.sbt

src/sbt-test/*/*/bin/.lib

9 changes: 4 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ val versions = new {
val scala = "2.12.19" // Must use Scala 2.12.x for sbt plugins
val airframe = "24.7.1"
val sonatypeZapperClient = "1.3"
val sttp = "4.0.0-M10"
val zioJson = "0.6.2"
val sonatypeClient = "0.1.0"
val sttp = "4.0.0-M16"
val sonatypeClient = "0.3.0"
}

ThisBuild / dynverSeparator := "-"
Expand Down Expand Up @@ -70,8 +69,8 @@ lazy val sbtSonatype =
excludeAll (ExclusionRule("org.scala-lang.modules", "scala-parser-combinators_2.12")),
"org.wvlet.airframe" %% "airspec" % versions.airframe % Test,
"com.lumidion" %% "sonatype-central-client-sttp-core" % versions.sonatypeClient,
"com.lumidion" %% "sonatype-central-client-zio-json" % versions.sonatypeClient,
"com.lumidion" %% "sonatype-central-client-upickle" % versions.sonatypeClient,
"com.softwaremill.sttp.client4" %% "slf4j-backend" % versions.sttp,
"com.softwaremill.sttp.client4" %% "zio-json" % versions.sttp
"com.softwaremill.sttp.client4" %% "upickle" % versions.sttp
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.lumidion.sonatype.central.client.core.{
}
import com.lumidion.sonatype.central.client.core.DeploymentState.PUBLISHED
import com.lumidion.sonatype.central.client.sttp.core.SyncSonatypeClient
import com.lumidion.sonatype.central.client.zio.json.decoders.*
import com.lumidion.sonatype.central.client.upickle.decoders.*
import java.io.File
import sbt.librarymanagement.ivy.Credentials
import scala.math.pow
Expand All @@ -18,7 +18,7 @@ import sttp.client4.{HttpError, ResponseException}
import sttp.client4.httpurlconnection.HttpURLConnectionBackend
import sttp.client4.logging.slf4j.Slf4jLoggingBackend
import sttp.client4.logging.LoggingOptions
import sttp.client4.ziojson.asJson
import sttp.client4.upicklejson.default.*
import sttp.model.StatusCode
import wvlet.log.LogSupport
import xerial.sbt.sonatype.utils.Extensions.*
Expand Down

0 comments on commit c945ea0

Please sign in to comment.