Skip to content

Commit

Permalink
Merge pull request #42 from scalatest/feature-release-for-scalacheck-…
Browse files Browse the repository at this point in the history
…1.15

Release for ScalaCheck 1.15
  • Loading branch information
bvenners authored Nov 3, 2020
2 parents 4eb407b + 1edbd21 commit df084b3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 17 deletions.
43 changes: 27 additions & 16 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ val sharedSettings = Seq(
url("https://github.com/cheeseng")
)
),
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest-core" % "3.2.2",
("org.scalacheck" %%% "scalacheck" % "1.14.3").withDottyCompat(scalaVersion.value),
"org.scalatest" %%% "scalatest-shouldmatchers" % "3.2.2" % "test",
"org.scalatest" %%% "scalatest-funspec" % "3.2.2" % "test",
"org.scalatest" %%% "scalatest-core" % "3.2.2",
"org.scalacheck" %%% "scalacheck" % "1.15.0",
"org.scalatest" %%% "scalatest-shouldmatchers" % "3.2.2" % "test",
"org.scalatest" %%% "scalatest-funspec" % "3.2.2" % "test",
"org.scalatest" %%% "scalatest-funsuite" % "3.2.2" % "test"
),
// skip dependency elements with a scope
Expand All @@ -42,7 +42,7 @@ val sharedSettings = Seq(
case _ => node
}
}).transform(node).head
},
},
sourceGenerators in Compile += {
Def.task {
GenScalaCheckGen.genMain((sourceManaged in Compile).value / "org" / "scalatest" / "check", version.value, scalaVersion.value)
Expand All @@ -52,7 +52,7 @@ val sharedSettings = Seq(
Def.task {
GenScalaCheckGen.genTest((sourceManaged in Test).value / "org" / "scalatest" / "check", version.value, scalaVersion.value)
}
},
},
publishTo := {
val nexus = "https://oss.sonatype.org/"
Some("publish-releases" at nexus + "service/local/staging/deploy/maven2")
Expand All @@ -68,9 +68,20 @@ val sharedSettings = Seq(
scm:git:git@github.com:scalatest/scalatestplus-scalacheck.git
</developerConnection>
</scm>
),
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
scalacOptions in (Compile, doc) := Seq("-doc-title", s"ScalaTest + ScalaCheck ${version.value}")
),
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
scalacOptions in (Compile, doc) := {
if (scalaBinaryVersion.value startsWith "0.2")
Seq.empty
else
Seq("-doc-title", s"ScalaTest + ScalaCheck ${version.value}")
},
publishArtifact in (Compile, packageDoc) := {
if (scalaBinaryVersion.value startsWith "0.2")
false // Temporary disable publishing of doc in dotty, can't get it to build.
else
true
}
)

lazy val scalatestPlusScalaCheck =
Expand All @@ -85,7 +96,7 @@ lazy val scalatestPlusScalaCheck =
),
OsgiKeys.importPackage := Seq(
"org.scalatest.*",
"org.scalactic.*",
"org.scalactic.*",
"scala.*;version=\"$<range;[==,=+);$<replace;"+scalaBinaryVersion.value+";-;.>>\"",
"*;resolution:=optional"
),
Expand All @@ -97,7 +108,7 @@ lazy val scalatestPlusScalaCheck =
)
)
.jsSettings(
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.12", "2.13.3"),
crossScalaVersions := List("2.11.12", "2.12.12", "2.13.3"),
sourceGenerators in Compile += {
Def.task {
GenResourcesJSVM.genResources((sourceManaged in Compile).value / "org" / "scalatestplus" / "scalacheck", version.value, scalaVersion.value) ++
Expand All @@ -106,8 +117,8 @@ lazy val scalatestPlusScalaCheck =
}
)
.jvmSettings(
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.12", "2.13.3", "0.27.0-RC1"),
Test / scalacOptions ++= (if (isDotty.value) Seq("-language:implicitConversions") else Nil),
crossScalaVersions := List("2.11.12", "2.12.12", "2.13.3", "0.27.0-RC1"),
Test / scalacOptions ++= (if (isDotty.value) Seq("-language:implicitConversions") else Nil),
sourceGenerators in Compile += {
Def.task {
GenResourcesJVM.genResources((sourceManaged in Compile).value / "org" / "scalatestplus" / "scalacheck", version.value, scalaVersion.value) ++
Expand All @@ -116,8 +127,8 @@ lazy val scalatestPlusScalaCheck =
}
)
.nativeSettings(
scalaVersion := "2.11.12",
nativeLinkStubs in NativeTest := true,
scalaVersion := "2.11.12",
nativeLinkStubs in NativeTest := true,
sourceGenerators in Compile += {
Def.task {
GenResourcesJSVM.genResources((sourceManaged in Compile).value / "org" / "scalatestplus" / "scalacheck", version.value, scalaVersion.value) ++
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.6.0")

addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "0.6.0")

val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("1.2.0")
val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("1.3.0")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)

Expand Down

0 comments on commit df084b3

Please sign in to comment.