Skip to content

Commit

Permalink
use nowarn annotation instead of nowarn scalacOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Oct 10, 2024
1 parent 49d4315 commit 16d2194
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ lazy val sbtSonatype =
testFrameworks += new TestFramework("wvlet.airspec.Framework"),
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "org.xerial.sbt.sonatype",
scalacOptions ++= Seq("-nowarn"),
scalacOptions += {
scalaBinaryVersion.value match {
case "2.12" =>
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/xerial/sbt/sonatype/SonatypeClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.apache.http.impl.client.BasicCredentialsProvider
import org.sonatype.spice.zapper.client.hc4.Hc4ClientBuilder
import org.sonatype.spice.zapper.ParametersBuilder
import sbt.librarymanagement.ivy.Credentials
import scala.annotation.nowarn
import scala.concurrent.duration.Duration
import wvlet.airframe.control.{Control, ResultClass, Retry}
import wvlet.airframe.http.*
Expand Down Expand Up @@ -36,6 +37,7 @@ class SonatypeClient(

private val pathPrefix = repoUri.getPath

@nowarn("msg=URLConnectionClientBackend")
private[sonatype] val clientConfig = {
Http.client
.withName("sonatype-client")
Expand Down

0 comments on commit 16d2194

Please sign in to comment.