Skip to content

Commit 27b8fb1

Browse files
committed
Merge branch 'feature-3.2.0.0' into scalacheck-1.14/3.2.0.x
2 parents d6907e1 + 9e22001 commit 27b8fb1

File tree

10 files changed

+92
-83
lines changed

10 files changed

+92
-83
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.log
33
target
44
.idea/
5+
_site/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Please use the following commands to publish to Sonatype:
2929
```
3030
$ export SCALAJS_VERSION=0.6.33
3131
$ sbt clean +scalatestPlusScalaCheckJS/publishSigned +scalatestPlusScalaCheckJVM/publishSigned scalatestPlusScalaCheckNative/publishSigned
32-
$ export SCALAJS_VERSION=1.0.1
32+
$ export SCALAJS_VERSION=1.1.0
3333
$ sbt ++2.11.12 "project scalatestPlusScalaCheckJS" clean publishSigned
3434
$ sbt ++2.12.11 "project scalatestPlusScalaCheckJS" clean publishSigned
3535
$ sbt ++2.13.2 "project scalatestPlusScalaCheckJS" clean publishSigned

build.sbt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ 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(
2828
"org.scalatest" %%% "scalatest-core" % "3.2.0",
29-
"org.scalacheck" %%% "scalacheck" % "1.14.3",
29+
("org.scalacheck" %%% "scalacheck" % "1.14.3").withDottyCompat(scalaVersion.value),
3030
"org.scalatest" %%% "scalatest-shouldmatchers" % "3.2.0" % "test",
3131
"org.scalatest" %%% "scalatest-funspec" % "3.2.0" % "test",
3232
"org.scalatest" %%% "scalatest-funsuite" % "3.2.0" % "test"
@@ -60,9 +60,16 @@ val sharedSettings = Seq(
6060
publishMavenStyle := true,
6161
publishArtifact in Test := false,
6262
pomIncludeRepository := { _ => false },
63-
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
64-
pgpSecretRing := file((Path.userHome / ".gnupg" / "secring.gpg").getAbsolutePath),
65-
pgpPassphrase := None
63+
pomExtra := (
64+
<scm>
65+
<url>https://github.com/scalatest/scalatestplus-scalacheck</url>
66+
<connection>scm:git:git@github.com:scalatest/scalatestplus-scalacheck.git</connection>
67+
<developerConnection>
68+
scm:git:git@github.com:scalatest/scalatestplus-scalacheck.git
69+
</developerConnection>
70+
</scm>
71+
),
72+
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
6673
)
6774

6875
lazy val scalatestPlusScalaCheck =
@@ -98,7 +105,8 @@ lazy val scalatestPlusScalaCheck =
98105
}
99106
)
100107
.jvmSettings(
101-
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.11", "2.13.2"),
108+
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.11", "2.13.2", "0.24.0"),
109+
Test / scalacOptions ++= (if (isDotty.value) Seq("-language:implicitConversions") else Nil),
102110
sourceGenerators in Compile += {
103111
Def.task {
104112
GenResourcesJVM.genResources((sourceManaged in Compile).value / "org" / "scalatestplus" / "scalacheck", version.value, scalaVersion.value) ++

project/GenResources.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ object GenResourcesJVM extends GenResources {
140140
|
141141
|def bigProblems(ex: Throwable): String = {
142142
| val message = if (ex.getMessage == null) "" else ex.getMessage.trim
143-
| if (message.length > 0) Resources.bigProblemsWithMessage(message) else Resources.bigProblems
143+
| if (message.length > 0) Resources.bigProblemsWithMessage(message) else Resources.bigProblems()
144144
|}
145145
|}
146146
""".stripMargin
@@ -188,7 +188,7 @@ object GenResourcesJSVM extends GenResources {
188188
|
189189
|def bigProblems(ex: Throwable): String = {
190190
| val message = if (ex.getMessage == null) "" else ex.getMessage.trim
191-
| if (message.length > 0) Resources.bigProblemsWithMessage(message) else Resources.bigProblems
191+
| if (message.length > 0) Resources.bigProblemsWithMessage(message) else Resources.bigProblems()
192192
|}
193193
|}
194194
""".stripMargin
@@ -209,7 +209,7 @@ object GenResourcesJSVM extends GenResources {
209209
"final val raw" + kv.key.capitalize + " = \"" + kv.value.replaceAllLiterally("\"", "\\\"").replaceAllLiterally("''", "'") + "\"\n\n" +
210210
(
211211
if (paramCount == 0 )
212-
"final val " + kv.key + " = raw" + kv.key.capitalize
212+
"final def " + kv.key + "() = raw" + kv.key.capitalize
213213
else
214214
"def " + kv.key + "(" + (for (i <- 0 until paramCount) yield s"param$i: Any").mkString(", ") + "): String = \n" +
215215
" raw" + kv.key.capitalize + (for (i <- 0 until paramCount) yield ".replaceAllLiterally(\"{" + i + "}\", param" + i + " + \"\")").mkString + "\n"
@@ -223,11 +223,11 @@ object GenResourcesJSVM extends GenResources {
223223

224224
def failureMessagesKeyValueTemplate(kv: KeyValue, paramCount: Int): String =
225225
if (paramCount == 0)
226-
"final val " + kv.key + " = Resources." + kv.key
226+
"final def " + kv.key + "() = Resources." + kv.key
227227
else
228228
"object " + kv.key + " { \ndef apply(" + (if (paramCount == 0) "" else "prettifier: org.scalactic.Prettifier, ") + (for (i <- 0 until paramCount) yield s"param$i: Any").mkString(", ") + "): String = \n" +
229229
" Resources." + kv.key + "(" + (for (i <- 0 until paramCount) yield s"decorateToStringValue(prettifier, param$i)").mkString(", ") + ")" + "\n" +
230230
"}"
231231
//"def " + kv.key + "(" + (for (i <- 0 until paramCount) yield s"param$i: Any").mkString(", ") + "): String = Resources." + kv.key + "(" + (for (i <- 0 until paramCount) yield s"decorateToStringValue(param$i)").mkString(", ") + ")"
232232

233-
}
233+
}

0 commit comments

Comments
 (0)