1
- import com .softwaremill .Publish .Release .updateVersionInDocs
2
- import sbtrelease .ReleasePlugin .autoImport ._
3
- import sbtrelease .ReleaseStateTransformations ._
4
- // run JS tests inside Chrome, due to jsdom not supporting fetch
5
1
import com .softwaremill .SbtSoftwareMillBrowserTestJS ._
6
2
7
3
val scala2_11 = " 2.11.12"
8
4
val scala2_12 = " 2.12.11"
9
5
val scala2_13 = " 2.13.4"
10
6
val scala2 = List (scala2_11, scala2_12, scala2_13)
11
- val dotty = " 0.27.0-RC1"
12
- val scala3 = List (dotty, " 3.0.0-M1" )
7
+ val scala3 = List (" 3.0.0-M1" , " 3.0.0-M2" )
13
8
14
- val sttpModelVersion = " 1.2.0-RC6 "
9
+ val sttpModelVersion = " 1.2.0-RC8 "
15
10
16
- def scalaTestVersion ( scalaVersion : String ) : String = if (scalaVersion == dotty) " 3.2.2 " else " 3.2.3"
11
+ val scalaTestVersion = " 3.2.3"
17
12
val scalaNativeTestInterfaceVersion = " 0.4.0-M2"
18
13
val zioVersion = " 1.0.3"
19
14
val fs2Version : Option [(Long , Long )] => String = {
@@ -28,28 +23,6 @@ def dependenciesFor(version: String)(deps: (Option[(Long, Long)] => ModuleID)*):
28
23
29
24
val commonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq (
30
25
organization := " com.softwaremill.sttp.shared" ,
31
- scmInfo := Some (
32
- ScmInfo (url(
" https://github.com/softwaremill/sttp-shared" ),
" scm:[email protected] :softwaremill/sttp-shared.git" )
33
- ),
34
- // cross-release doesn't work when subprojects have different cross versions
35
- // work-around from https://github.com/sbt/sbt-release/issues/214
36
- releaseCrossBuild := false ,
37
- releaseProcess := Seq (
38
- checkSnapshotDependencies,
39
- inquireVersions,
40
- // publishing locally so that the pgp password prompt is displayed early
41
- // in the process
42
- releaseStepCommandAndRemaining(" publishLocalSigned" ),
43
- releaseStepCommandAndRemaining(" clean" ),
44
- releaseStepCommandAndRemaining(" test" ),
45
- setReleaseVersion,
46
- updateVersionInDocs(organization.value),
47
- commitReleaseVersion,
48
- tagRelease,
49
- releaseStepCommandAndRemaining(" publishSigned" ),
50
- releaseStepCommand(" sonatypeBundleRelease" ),
51
- pushChanges
52
- ),
53
26
// doc generation is broken in dotty
54
27
sources in (Compile , doc) := {
55
28
val scalaV = scalaVersion.value
@@ -67,28 +40,15 @@ val commonJvmSettings = commonSettings ++ Seq(
67
40
},
68
41
ideSkipProject := (scalaVersion.value != scala2_13),
69
42
libraryDependencies ++= Seq (
70
- " org.scalatest" %% " scalatest" % scalaTestVersion(scalaVersion.value) % Test
43
+ " org.scalatest" %% " scalatest" % scalaTestVersion % Test
71
44
)
72
45
)
73
46
74
47
val commonJsSettings = commonSettings ++ Seq (
75
- // https://github.com/scalaz/scalaz/pull/1734#issuecomment-385627061
76
- scalaJSLinkerConfig ~= {
77
- _.withBatchMode(System .getenv(" CONTINUOUS_INTEGRATION" ) == " true" )
78
- },
79
- scalacOptions in Compile ++= {
80
- if (isSnapshot.value) Seq .empty
81
- else
82
- Seq {
83
- val dir = project.base.toURI.toString.replaceFirst(" [^/]+/?$" , " " )
84
- val url = " https://raw.githubusercontent.com/softwaremill/sttp-shared"
85
- s " -P:scalajs:mapSourceURI: $dir-> $url/v ${version.value}/ "
86
- }
87
- },
88
48
ideSkipProject := true ,
89
49
libraryDependencies ++= Seq (
90
50
" org.scala-js" %%% " scalajs-dom" % " 1.1.0" ,
91
- " org.scalatest" %%% " scalatest" % scalaTestVersion(scalaVersion.value) % Test
51
+ " org.scalatest" %%% " scalatest" % scalaTestVersion % Test
92
52
)
93
53
)
94
54
@@ -97,7 +57,7 @@ val commonNativeSettings = commonSettings ++ Seq(
97
57
ideSkipProject := true ,
98
58
libraryDependencies ++= Seq (
99
59
" org.scala-native" %%% " test-interface" % scalaNativeTestInterfaceVersion,
100
- " org.scalatest" %%% " scalatest" % scalaTestVersion(scalaVersion.value) % Test
60
+ " org.scalatest" %%% " scalatest" % scalaTestVersion % Test
101
61
)
102
62
)
103
63
@@ -134,7 +94,7 @@ lazy val core = (projectMatrix in file("core"))
134
94
)
135
95
.jsPlatform(
136
96
scalaVersions = scala2,
137
- settings = commonJsSettings ++ browserTestSettings
97
+ settings = commonJsSettings ++ browserChromeTestSettings
138
98
)
139
99
.nativePlatform(
140
100
scalaVersions = List (scala2_11),
@@ -152,7 +112,7 @@ lazy val ws = (projectMatrix in file("ws"))
152
112
)
153
113
.jsPlatform(
154
114
scalaVersions = scala2,
155
- settings = commonJsSettings ++ browserTestSettings
115
+ settings = commonJsSettings ++ browserChromeTestSettings
156
116
)
157
117
.nativePlatform(
158
118
scalaVersions = List (scala2_11),
@@ -196,7 +156,7 @@ lazy val monix = (projectMatrix in file("monix"))
196
156
)
197
157
.jsPlatform(
198
158
scalaVersions = List (scala2_12, scala2_13),
199
- settings = commonJsSettings ++ browserTestSettings
159
+ settings = commonJsSettings ++ browserChromeTestSettings
200
160
)
201
161
.dependsOn(core)
202
162
@@ -206,7 +166,7 @@ lazy val zio = (projectMatrix in file("zio"))
206
166
libraryDependencies ++= Seq (" dev.zio" %% " zio-streams" % zioVersion, " dev.zio" %% " zio" % zioVersion)
207
167
)
208
168
.jvmPlatform(
209
- scalaVersions = scala2 ++ List (dotty) ,
169
+ scalaVersions = scala2,
210
170
settings = commonJvmSettings
211
171
)
212
172
.dependsOn(core)
0 commit comments