@@ -23,12 +23,12 @@ val sharedSettings = Seq(
23
23
url(" https://github.com/cheeseng" )
24
24
)
25
25
),
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" ,
27
27
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" ,
32
32
" org.scalatest" %%% " scalatest-funsuite" % " 3.2.2" % " test"
33
33
),
34
34
// skip dependency elements with a scope
@@ -42,7 +42,7 @@ val sharedSettings = Seq(
42
42
case _ => node
43
43
}
44
44
}).transform(node).head
45
- },
45
+ },
46
46
sourceGenerators in Compile += {
47
47
Def .task {
48
48
GenScalaCheckGen .genMain((sourceManaged in Compile ).value / " org" / " scalatest" / " check" , version.value, scalaVersion.value)
@@ -52,7 +52,7 @@ val sharedSettings = Seq(
52
52
Def .task {
53
53
GenScalaCheckGen .genTest((sourceManaged in Test ).value / " org" / " scalatest" / " check" , version.value, scalaVersion.value)
54
54
}
55
- },
55
+ },
56
56
publishTo := {
57
57
val nexus = " https://oss.sonatype.org/"
58
58
Some (" publish-releases" at nexus + " service/local/staging/deploy/maven2" )
@@ -68,9 +68,20 @@ val sharedSettings = Seq(
68
68
scm: git: git@ github.com: scalatest/ scalatestplus- scalacheck.git
69
69
</developerConnection >
70
70
</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
+ }
74
85
)
75
86
76
87
lazy val scalatestPlusScalaCheck =
@@ -85,7 +96,7 @@ lazy val scalatestPlusScalaCheck =
85
96
),
86
97
OsgiKeys .importPackage := Seq (
87
98
" org.scalatest.*" ,
88
- " org.scalactic.*" ,
99
+ " org.scalactic.*" ,
89
100
" scala.*;version=\" $<range;[==,=+);$<replace;" + scalaBinaryVersion.value+ " ;-;.>>\" " ,
90
101
" *;resolution:=optional"
91
102
),
@@ -97,7 +108,7 @@ lazy val scalatestPlusScalaCheck =
97
108
)
98
109
)
99
110
.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" ),
101
112
sourceGenerators in Compile += {
102
113
Def .task {
103
114
GenResourcesJSVM .genResources((sourceManaged in Compile ).value / " org" / " scalatestplus" / " scalacheck" , version.value, scalaVersion.value) ++
@@ -106,8 +117,8 @@ lazy val scalatestPlusScalaCheck =
106
117
}
107
118
)
108
119
.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 ),
111
122
sourceGenerators in Compile += {
112
123
Def .task {
113
124
GenResourcesJVM .genResources((sourceManaged in Compile ).value / " org" / " scalatestplus" / " scalacheck" , version.value, scalaVersion.value) ++
@@ -116,8 +127,8 @@ lazy val scalatestPlusScalaCheck =
116
127
}
117
128
)
118
129
.nativeSettings(
119
- scalaVersion := " 2.11.12" ,
120
- nativeLinkStubs in NativeTest := true ,
130
+ scalaVersion := " 2.11.12" ,
131
+ nativeLinkStubs in NativeTest := true ,
121
132
sourceGenerators in Compile += {
122
133
Def .task {
123
134
GenResourcesJSVM .genResources((sourceManaged in Compile ).value / " org" / " scalatestplus" / " scalacheck" , version.value, scalaVersion.value) ++
0 commit comments