diff --git a/build.sbt b/build.sbt index e36ce420..28800bb4 100644 --- a/build.sbt +++ b/build.sbt @@ -112,7 +112,7 @@ lazy val `scalatestplus-play` = project ), scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-encoding", "utf8") ++ (CrossVersion.partialVersion(scalaVersion.value) match { - case Some((2, 13)) => Seq("-Xsource:3", "-Xmigration") + case Some((2, 13)) => Seq("-Xsource:3") case _ => Seq.empty }), javacOptions ++= Seq("-encoding", "UTF-8", "-Xlint:-options", "--release", "11"), diff --git a/module/src/test/scala/org/scalatestplus/play/ConfiguredAppSpec.scala b/module/src/test/scala/org/scalatestplus/play/ConfiguredAppSpec.scala index be9e0a66..cb5a55fe 100644 --- a/module/src/test/scala/org/scalatestplus/play/ConfiguredAppSpec.scala +++ b/module/src/test/scala/org/scalatestplus/play/ConfiguredAppSpec.scala @@ -49,7 +49,7 @@ class ConfiguredAppSpec extends UnitSpec with SequentialNestedSuiteExecution wit } } - override def nestedSuites = Vector(new NestedSuite) + override def nestedSuites: Vector[NestedSuite] = Vector(new NestedSuite) override def fakeApplication(): Application = { GuiceApplicationBuilder().configure("foo" -> "bar").build() diff --git a/module/src/test/scala/org/scalatestplus/play/ConfiguredServerSpec.scala b/module/src/test/scala/org/scalatestplus/play/ConfiguredServerSpec.scala index ca513591..f2278379 100644 --- a/module/src/test/scala/org/scalatestplus/play/ConfiguredServerSpec.scala +++ b/module/src/test/scala/org/scalatestplus/play/ConfiguredServerSpec.scala @@ -23,7 +23,7 @@ import play.api.inject.guice._ class ConfiguredServerSpec extends UnitSpec with SequentialNestedSuiteExecution with GuiceOneServerPerSuite { - override def nestedSuites = Vector(new ConfiguredServerNestedSuite) + override def nestedSuites: Vector[ConfiguredServerNestedSuite] = Vector(new ConfiguredServerNestedSuite) override def fakeApplication(): Application = { GuiceApplicationBuilder().configure("foo" -> "bar").build() diff --git a/module/src/test/scala/org/scalatestplus/play/ConfiguredServerWithConfiguredBrowserSpec.scala b/module/src/test/scala/org/scalatestplus/play/ConfiguredServerWithConfiguredBrowserSpec.scala index 93c197e2..781690d4 100644 --- a/module/src/test/scala/org/scalatestplus/play/ConfiguredServerWithConfiguredBrowserSpec.scala +++ b/module/src/test/scala/org/scalatestplus/play/ConfiguredServerWithConfiguredBrowserSpec.scala @@ -29,7 +29,8 @@ class ConfiguredServerWithConfiguredBrowserSpec with OneBrowserPerSuite with HtmlUnitFactory { - override def nestedSuites = Vector(new ConfiguredServerWithConfiguredBrowserNestedSpec) + override def nestedSuites: Vector[ConfiguredServerWithConfiguredBrowserNestedSpec] = + Vector(new ConfiguredServerWithConfiguredBrowserNestedSpec) override def fakeApplication(): Application = { GuiceApplicationBuilder() diff --git a/module/src/test/scala/org/scalatestplus/play/OneServerPerSuiteWithConfiguredBrowserSpec.scala b/module/src/test/scala/org/scalatestplus/play/OneServerPerSuiteWithConfiguredBrowserSpec.scala index 65f47d7d..0fcfb4ad 100644 --- a/module/src/test/scala/org/scalatestplus/play/OneServerPerSuiteWithConfiguredBrowserSpec.scala +++ b/module/src/test/scala/org/scalatestplus/play/OneServerPerSuiteWithConfiguredBrowserSpec.scala @@ -29,7 +29,8 @@ class OneServerPerSuiteWithConfiguredBrowserSpec with OneBrowserPerSuite with HtmlUnitFactory { - override def nestedSuites = Vector(new OneServerPerSuiteWithConfiguredBrowserNestedSpec) + override def nestedSuites: Vector[OneServerPerSuiteWithConfiguredBrowserNestedSpec] = + Vector(new OneServerPerSuiteWithConfiguredBrowserNestedSpec) override def fakeApplication(): Application = { GuiceApplicationBuilder() diff --git a/module/src/test/scala/org/scalatestplus/play/OneServerPerTestWithConfiguredBrowserSpec.scala b/module/src/test/scala/org/scalatestplus/play/OneServerPerTestWithConfiguredBrowserSpec.scala index 25ed24db..5d620f18 100644 --- a/module/src/test/scala/org/scalatestplus/play/OneServerPerTestWithConfiguredBrowserSpec.scala +++ b/module/src/test/scala/org/scalatestplus/play/OneServerPerTestWithConfiguredBrowserSpec.scala @@ -29,7 +29,8 @@ class OneServerPerTestWithConfiguredBrowserSpec with OneBrowserPerSuite with HtmlUnitFactory { - override def nestedSuites = Vector(new OneServerPerTestWithConfiguredBrowserNestedSpec) + override def nestedSuites: Vector[OneServerPerTestWithConfiguredBrowserNestedSpec] = + Vector(new OneServerPerTestWithConfiguredBrowserNestedSpec) override def fakeApplication(): Application = { GuiceApplicationBuilder()