Skip to content

Commit

Permalink
Merge pull request #8658 from ashawley/scalacheckDep
Browse files Browse the repository at this point in the history
Update ScalaCheck to 1.14.3
  • Loading branch information
SethTisue committed Jan 31, 2020
2 parents 9090f28 + 21f02a7 commit 46a8156
Show file tree
Hide file tree
Showing 33 changed files with 10 additions and 6,567 deletions.
32 changes: 10 additions & 22 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import scala.tools.nsc.util.ScalaClassLoader.URLClassLoader
// Non-Scala dependencies:
val junitDep = "junit" % "junit" % "4.12"
val junitInterfaceDep = "com.novocode" % "junit-interface" % "0.11" % "test"
val scalacheckDep = "org.scalacheck" %% "scalacheck" % "1.14.3" % "test"
val jolDep = "org.openjdk.jol" % "jol-core" % "0.9"
val asmDep = "org.scala-lang.modules" % "scala-asm" % versionProps("scala-asm.version")
val jlineDep = "jline" % "jline" % versionProps("jline.version")
Expand Down Expand Up @@ -654,16 +655,6 @@ lazy val partest = configureAsSubproject(project)
)
)

lazy val scalacheckLib = project.in(file("src") / "scalacheck")
.dependsOn(library)
.settings(commonSettings)
.settings(disableDocs)
.settings(skip in publish := true)
.settings(
name := "scalacheck-lib",
libraryDependencies += testInterfaceDep
)

// An instrumented version of BoxesRunTime and ScalaRunTime for partest's "specialized" test category
lazy val specLib = project.in(file("test") / "instrumented")
.dependsOn(library, reflect, compiler)
Expand Down Expand Up @@ -753,23 +744,21 @@ lazy val junit = project.in(file("test") / "junit")


lazy val scalacheck = project.in(file("test") / "scalacheck")
.dependsOn(library, reflect, compiler, scaladoc, scalacheckLib)
.dependsOn(library, reflect, compiler, scaladoc)
.settings(commonSettings)
.settings(disableDocs)
.settings(skip in publish := true)
.settings(
// Enable forking to workaround https://github.com/sbt/sbt/issues/4009. We also need a lazy Framework
// written in Java to further reduce ClassLoader problems when bootstrapping:
// Enable forking to workaround https://github.com/sbt/sbt/issues/4009.
fork in Test := true,
testFrameworks := Seq(TestFramework("org.scalacheck.LazyFramework")),
// When we switch to sbt 1.3.0 it should be possible to set the ClassLoaderLayeringStrategy instead:
//classLoaderLayeringStrategy in Test := ClassLoaderLayeringStrategy.Flat,
// customise framework for early access to https://github.com/rickynils/scalacheck/pull/388
// TODO remove this when we upgrade scalacheck
//testFrameworks := Seq(TestFramework("org.scalacheck.CustomScalaCheckFramework")),
// Instead of forking above, it should be possible to set:
// classLoaderLayeringStrategy in Test := ClassLoaderLayeringStrategy.Flat,
javaOptions in Test += "-Xss1M",
//Make scalacheck print full stack traces
testOptions in Test += Tests.Argument(TestFramework("org.scalacheck.LazyFramework"), "-verbosity", "2"),
testOptions in Test += Tests.Argument(
// Full stack trace on failure:
"-verbosity", "2"
),
libraryDependencies ++= Seq(scalacheckDep),
unmanagedSourceDirectories in Compile := Nil,
unmanagedSourceDirectories in Test := List(baseDirectory.value)
)
Expand Down Expand Up @@ -1256,7 +1245,6 @@ intellij := {
moduleDeps(reflect).value,
moduleDeps(repl).value,
moduleDeps(replFrontend).value,
moduleDeps(scalacheckLib).value.copy(_1 = "scalacheck-src"),
moduleDeps(scalacheck, config = Test).value.copy(_1 = "scalacheck-test"),
moduleDeps(scaladoc).value,
moduleDeps(scalap).value,
Expand Down
8 changes: 0 additions & 8 deletions src/intellij/scala.ipr.SAMPLE
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
<module filepath="$PROJECT_DIR$/repl-frontend.iml" fileurl="file://$PROJECT_DIR$/repl-frontend.iml"/>
<module filepath="$PROJECT_DIR$/scala.iml" fileurl="file://$PROJECT_DIR$/scala.iml"/>
<module filepath="$PROJECT_DIR$/scala-build.iml" fileurl="file://$PROJECT_DIR$/scala-build.iml"/>
<module filepath="$PROJECT_DIR$/scalacheck-src.iml" fileurl="file://$PROJECT_DIR$/scalacheck-src.iml"/>
<module filepath="$PROJECT_DIR$/scalacheck-test.iml" fileurl="file://$PROJECT_DIR$/scalacheck-test.iml"/>
<module filepath="$PROJECT_DIR$/scaladoc.iml" fileurl="file://$PROJECT_DIR$/scaladoc.iml"/>
<module filepath="$PROJECT_DIR$/scalap.iml" fileurl="file://$PROJECT_DIR$/scalap.iml"/>
Expand Down Expand Up @@ -403,13 +402,6 @@
<JAVADOC />
<SOURCES />
</library>
<library name="scalacheck-src-deps">
<CLASSES>
<root url="jar://$USER_HOME$/.ivy2/cache/org.scala-sbt/test-interface/jars/test-interface-1.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
<library name="scalacheck-test-deps">
<CLASSES>
<root url="jar://$USER_HOME$/.ivy2/cache/org.scala-lang.modules/scala-asm/bundles/scala-asm-7.0.0-scala-1.jar!/" />
Expand Down
16 changes: 0 additions & 16 deletions src/intellij/scalacheck-src.iml.SAMPLE

This file was deleted.

1 change: 0 additions & 1 deletion src/intellij/scalacheck-test.iml.SAMPLE
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<orderEntry type="module" module-name="reflect" />
<orderEntry type="module" module-name="compiler" />
<orderEntry type="module" module-name="scaladoc" />
<orderEntry type="module" module-name="scalacheck-src" />
<orderEntry type="library" name="scalacheck-test-deps" level="project" />
<orderEntry type="library" name="starr" level="project" />
</component>
Expand Down
Loading

0 comments on commit 46a8156

Please sign in to comment.