Skip to content

Commit df084b3

Browse files
authored
Merge pull request #42 from scalatest/feature-release-for-scalacheck-1.15
Release for ScalaCheck 1.15
2 parents 4eb407b + 1edbd21 commit df084b3

File tree

2 files changed

+28
-17
lines changed

2 files changed

+28
-17
lines changed

build.sbt

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ val sharedSettings = Seq(
2323
url("https://github.com/cheeseng")
2424
)
2525
),
26-
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
26+
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
2727
libraryDependencies ++= Seq(
28-
"org.scalatest" %%% "scalatest-core" % "3.2.2",
29-
("org.scalacheck" %%% "scalacheck" % "1.14.3").withDottyCompat(scalaVersion.value),
30-
"org.scalatest" %%% "scalatest-shouldmatchers" % "3.2.2" % "test",
31-
"org.scalatest" %%% "scalatest-funspec" % "3.2.2" % "test",
28+
"org.scalatest" %%% "scalatest-core" % "3.2.2",
29+
"org.scalacheck" %%% "scalacheck" % "1.15.0",
30+
"org.scalatest" %%% "scalatest-shouldmatchers" % "3.2.2" % "test",
31+
"org.scalatest" %%% "scalatest-funspec" % "3.2.2" % "test",
3232
"org.scalatest" %%% "scalatest-funsuite" % "3.2.2" % "test"
3333
),
3434
// skip dependency elements with a scope
@@ -42,7 +42,7 @@ val sharedSettings = Seq(
4242
case _ => node
4343
}
4444
}).transform(node).head
45-
},
45+
},
4646
sourceGenerators in Compile += {
4747
Def.task {
4848
GenScalaCheckGen.genMain((sourceManaged in Compile).value / "org" / "scalatest" / "check", version.value, scalaVersion.value)
@@ -52,7 +52,7 @@ val sharedSettings = Seq(
5252
Def.task {
5353
GenScalaCheckGen.genTest((sourceManaged in Test).value / "org" / "scalatest" / "check", version.value, scalaVersion.value)
5454
}
55-
},
55+
},
5656
publishTo := {
5757
val nexus = "https://oss.sonatype.org/"
5858
Some("publish-releases" at nexus + "service/local/staging/deploy/maven2")
@@ -68,9 +68,20 @@ val sharedSettings = Seq(
6868
scm:git:git@github.com:scalatest/scalatestplus-scalacheck.git
6969
</developerConnection>
7070
</scm>
71-
),
72-
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
73-
scalacOptions in (Compile, doc) := Seq("-doc-title", s"ScalaTest + ScalaCheck ${version.value}")
71+
),
72+
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
73+
scalacOptions in (Compile, doc) := {
74+
if (scalaBinaryVersion.value startsWith "0.2")
75+
Seq.empty
76+
else
77+
Seq("-doc-title", s"ScalaTest + ScalaCheck ${version.value}")
78+
},
79+
publishArtifact in (Compile, packageDoc) := {
80+
if (scalaBinaryVersion.value startsWith "0.2")
81+
false // Temporary disable publishing of doc in dotty, can't get it to build.
82+
else
83+
true
84+
}
7485
)
7586

7687
lazy val scalatestPlusScalaCheck =
@@ -85,7 +96,7 @@ lazy val scalatestPlusScalaCheck =
8596
),
8697
OsgiKeys.importPackage := Seq(
8798
"org.scalatest.*",
88-
"org.scalactic.*",
99+
"org.scalactic.*",
89100
"scala.*;version=\"$<range;[==,=+);$<replace;"+scalaBinaryVersion.value+";-;.>>\"",
90101
"*;resolution:=optional"
91102
),
@@ -97,7 +108,7 @@ lazy val scalatestPlusScalaCheck =
97108
)
98109
)
99110
.jsSettings(
100-
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.12", "2.13.3"),
111+
crossScalaVersions := List("2.11.12", "2.12.12", "2.13.3"),
101112
sourceGenerators in Compile += {
102113
Def.task {
103114
GenResourcesJSVM.genResources((sourceManaged in Compile).value / "org" / "scalatestplus" / "scalacheck", version.value, scalaVersion.value) ++
@@ -106,8 +117,8 @@ lazy val scalatestPlusScalaCheck =
106117
}
107118
)
108119
.jvmSettings(
109-
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.12", "2.13.3", "0.27.0-RC1"),
110-
Test / scalacOptions ++= (if (isDotty.value) Seq("-language:implicitConversions") else Nil),
120+
crossScalaVersions := List("2.11.12", "2.12.12", "2.13.3", "0.27.0-RC1"),
121+
Test / scalacOptions ++= (if (isDotty.value) Seq("-language:implicitConversions") else Nil),
111122
sourceGenerators in Compile += {
112123
Def.task {
113124
GenResourcesJVM.genResources((sourceManaged in Compile).value / "org" / "scalatestplus" / "scalacheck", version.value, scalaVersion.value) ++
@@ -116,8 +127,8 @@ lazy val scalatestPlusScalaCheck =
116127
}
117128
)
118129
.nativeSettings(
119-
scalaVersion := "2.11.12",
120-
nativeLinkStubs in NativeTest := true,
130+
scalaVersion := "2.11.12",
131+
nativeLinkStubs in NativeTest := true,
121132
sourceGenerators in Compile += {
122133
Def.task {
123134
GenResourcesJSVM.genResources((sourceManaged in Compile).value / "org" / "scalatestplus" / "scalacheck", version.value, scalaVersion.value) ++

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.6.0")
22

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

5-
val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("1.2.0")
5+
val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("1.3.0")
66

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

0 commit comments

Comments
 (0)