Skip to content

Commit

Permalink
airspec (feature): Bundle schalacheck 1.17.0 as a dependency (#3106)
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial authored Aug 5, 2023
1 parent 6a35c3e commit bde4279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 3 additions & 2 deletions airspec/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def excludePomDependency(excludes: Seq[String]) = { node: XmlNode =>
}).transform(node).head
}

/** AirSpec build definitions.
/**
* AirSpec build definitions.
*
* To make AirSpec a standalone library without any cyclic project references, AirSpec embeds the source code of
* airframe-log, di, surface, etc.
Expand Down Expand Up @@ -320,7 +321,7 @@ lazy val airspec =
name := "airspec",
description := "AirSpec: A Functional Testing Framework for Scala",
libraryDependencies ++= Seq(
"org.scalacheck" %%% "scalacheck" % SCALACHECK_VERSION % Optional
"org.scalacheck" %%% "scalacheck" % SCALACHECK_VERSION
),
// A workaround for bloop, which cannot resolve Optional dependencies
pomPostProcess := excludePomDependency(Seq("airspec-deps", "airspec_2.12", "airspec_2.13"))
Expand Down
6 changes: 0 additions & 6 deletions docs/airspec.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,12 +523,6 @@ AirSpecContext also contains the name of test classes and method names, which wo
Optionally AirSpec can integrate with [ScalaCheck](https://github.com/typelevel/scalacheck/blob/master/doc/UserGuide.md).
Add `wvlet.airspec.spi.PropertyCheck` trait to your spec, and use `forAll` methods.

__build.sbt__
```scala
// Use %%% for Scala.js
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.15.4" % "test"
```

```scala
import wvlet.airspec._

Expand Down

0 comments on commit bde4279

Please sign in to comment.