1
1
import sbtcrossproject .CrossPlugin .autoImport .{CrossType , crossProject }
2
2
import xerial .sbt .Sonatype ._
3
3
4
-
5
4
ThisBuild / scalacOptions ++= Seq ( // use ++= to add to existing options
6
5
" -encoding" ,
7
6
" utf8" , // if an option takes an arg, supply it on the same line
@@ -28,14 +27,12 @@ inThisBuild(
28
27
url(" https://github.com/sherpal" )
29
28
)
30
29
),
31
- crossScalaVersions := Seq (" 3.3.3 " , " 2.13.14" , " 2.12.19" ),
30
+ crossScalaVersions := Seq (" 3.3.1 " , " 2.13.14" , " 2.12.19" ),
32
31
scalaVersion := crossScalaVersions.value.head,
33
32
autoAPIMappings := true
34
33
)
35
34
)
36
35
37
-
38
-
39
36
lazy val `url-dsl` = crossProject(JSPlatform , JVMPlatform )
40
37
.crossType(CrossType .Pure )
41
38
.in(file(" url-dsl" ))
@@ -56,7 +53,8 @@ lazy val `url-dsl` = crossProject(JSPlatform, JVMPlatform)
56
53
scalacOptions ++= sys.env.get(" CI" ).map { _ =>
57
54
val localSourcesPath = (LocalRootProject / baseDirectory).value.toURI
58
55
val remoteSourcesPath = s " https://raw.githubusercontent.com/sherpal/url-dsl/ ${git.gitHeadCommit.value.get}/ "
59
- val sourcesOptionName = if (scalaVersion.value.startsWith(" 2." )) " -P:scalajs:mapSourceURI" else " -scalajs-mapSourceURI"
56
+ val sourcesOptionName =
57
+ if (scalaVersion.value.startsWith(" 2." )) " -P:scalajs:mapSourceURI" else " -scalajs-mapSourceURI"
60
58
61
59
s " ${sourcesOptionName}: $localSourcesPath-> $remoteSourcesPath"
62
60
}
0 commit comments