From 3cc3016d585ad717869967bb2574db63f81927a2 Mon Sep 17 00:00:00 2001 From: Brian Holt Date: Mon, 12 Apr 2021 15:19:57 -0500 Subject: [PATCH] remove bintray dependencies --- build.sbt | 2 +- .../cloudformation/AmazonAsyncMockingImplicits.scala | 2 ++ project/plugins.sbt | 7 +++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index 844afe70..723c268c 100644 --- a/build.sbt +++ b/build.sbt @@ -160,6 +160,6 @@ lazy val fs2TestKit: Project = (project in file("test-kit")) lazy val `fs2-aws` = (project in file(".")) .settings( - skip in publish := true, + publish / skip := true, ) .aggregate(fs2UtilsJVM, fs2Utils.js, fs2AwsUtils, fs2Aws2Utils, fs2TestKit, lambdaIOApp.jvm, lambdaIOApp.js) diff --git a/main/src/test/scala/com/dwolla/fs2aws/cloudformation/AmazonAsyncMockingImplicits.scala b/main/src/test/scala/com/dwolla/fs2aws/cloudformation/AmazonAsyncMockingImplicits.scala index 19d2bdee..4b0ef6d4 100644 --- a/main/src/test/scala/com/dwolla/fs2aws/cloudformation/AmazonAsyncMockingImplicits.scala +++ b/main/src/test/scala/com/dwolla/fs2aws/cloudformation/AmazonAsyncMockingImplicits.scala @@ -48,6 +48,7 @@ object AmazonAsyncMockingImplicits { when(func(any[Req], any[AsyncHandler[Req, Res]])) thenAnswer ((invocation: InvocationOnMock) => { invocation.getArguments match { case Array(req, handler) => handler.asInstanceOf[AsyncHandler[Req, Res]].onSuccess(req.asInstanceOf[Req], res) + case _ => throw new IllegalArgumentException("must be invoked with the request and handler as arguments") } null }) @@ -80,6 +81,7 @@ object AmazonAsyncMockingImplicits { case Left(ex) => handler.onError(ex) case Right(res) => handler.onSuccess(req, res) } + case _ => throw new IllegalArgumentException("must be invoked with the request and handler as arguments") } null }) diff --git a/project/plugins.sbt b/project/plugins.sbt index 49562b6e..fcfe4c35 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,10 +1,9 @@ addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.5") -addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.5.0") +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.5.1") addSbtPlugin("org.portable-scala" % "sbt-crossproject" % "1.0.0") addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0") -addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.16") +addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17") addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.10.1") addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7") -resolvers += Resolver.bintrayRepo("oyvindberg", "converter") -addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta30") +addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta32")