Skip to content

Commit 66c7ddb

Browse files
committed
Merge branch 'feature-3.2.0-M1'
2 parents 5f24b60 + 17972d9 commit 66c7ddb

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

build.sbt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name := "easymock-3.2"
22

33
organization := "org.scalatestplus"
44

5-
version := "3.1.0.0-RC3"
5+
version := "3.1.0.0"
66

77
homepage := Some(url("https://github.com/scalatest/scalatestplus-easymock"))
88

@@ -23,15 +23,31 @@ developers := List(
2323
)
2424
)
2525

26-
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.10", "2.13.0")
26+
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.10", "2.13.1")
2727

2828
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
2929

3030
libraryDependencies ++= Seq(
3131
"org.easymock" % "easymockclassextension" % "3.2",
32-
"org.scalatest" %% "scalatest" % "3.1.0-RC3"
32+
"org.scalatest" %% "scalatest" % "3.1.0"
3333
)
3434

35+
import scala.xml.{Node => XmlNode, NodeSeq => XmlNodeSeq, _}
36+
import scala.xml.transform.{RewriteRule, RuleTransformer}
37+
38+
// skip dependency elements with a scope
39+
pomPostProcess := { (node: XmlNode) =>
40+
new RuleTransformer(new RewriteRule {
41+
override def transform(node: XmlNode): XmlNodeSeq = node match {
42+
case e: Elem if e.label == "dependency"
43+
&& e.child.exists(child => child.label == "scope") =>
44+
def txt(label: String): String = "\"" + e.child.filter(_.label == label).flatMap(_.text).mkString + "\""
45+
Comment(s""" scoped dependency ${txt("groupId")} % ${txt("artifactId")} % ${txt("version")} % ${txt("scope")} has been omitted """)
46+
case _ => node
47+
}
48+
}).transform(node).head
49+
}
50+
3551
enablePlugins(SbtOsgi)
3652

3753
osgiSettings

src/test/scala/org/scalatestplus/easymock/EasyMockSugarSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import org.scalatest._
1919
//import SharedHelpers._
2020
import refspec.RefSpec
2121

22-
class EasyMockSugarSpec extends FlatSpec with Matchers {
22+
class EasyMockSugarSpec extends flatspec.AnyFlatSpec with matchers.should.Matchers {
2323
"The EasyMockSugar trait's whenExecuting method" should
2424
"work with multiple mocks passed in" in {
2525
val a = new RefSpec with EasyMockSugar {

0 commit comments

Comments
 (0)