Skip to content

Commit

Permalink
Fixed a warning custom release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelCemus committed May 5, 2024
1 parent 277829a commit 2e39780
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ Test / fork := true
Test / test := (Test / testOnly).toTask(" * -- -l \"org.scalatest.Ignore\"").value
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oF")

semanticdbEnabled := true
semanticdbVersion := scalafixSemanticdb.revision
ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value)
semanticdbEnabled := true
semanticdbVersion := scalafixSemanticdb.revision

wartremoverWarnings ++= Warts.allBut(
Wart.Any,
Expand Down
2 changes: 1 addition & 1 deletion project/CustomReleasePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ object CustomReleasePlugin extends AutoPlugin {
val nextVersion = st.extracted.runTask(releaseVersion, st)._2(currentV)
val bump = Version.Bump.Minor

val suggestedReleaseV: String = Version(nextVersion).map(_.bump(bump).string).getOrElse(versionFormatError(currentV))
val suggestedReleaseV: String = Version(nextVersion).map(_.bump(bump).unapply).getOrElse(versionFormatError(currentV))

st.log.info("Press enter to use the default value")

Expand Down
3 changes: 2 additions & 1 deletion src/test/scala/play/api/cache/redis/RecoveryPolicySpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import play.api.Logger
import play.api.cache.redis.test._

import scala.concurrent.Future
import scala.util.control.NoStackTrace

class RecoveryPolicySpec extends AsyncUnitSpec {

private val rerun = Future.successful(10)
private val default = Future.successful(0)

private object ex {
private val internal = new IllegalArgumentException("Simulated Internal cause")
private val internal = new IllegalArgumentException("Simulated Internal cause") with NoStackTrace
val unexpectedAny: UnexpectedResponseException = UnexpectedResponseException(None, "TEST-CMD")
val unexpectedKey: UnexpectedResponseException = UnexpectedResponseException(Some("some key"), "TEST-CMD")
val failedAny: ExecutionFailedException = ExecutionFailedException(None, "TEST-CMD", "TEST-CMD", internal)
Expand Down

0 comments on commit 2e39780

Please sign in to comment.