@@ -2,7 +2,7 @@ import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
2
2
3
3
scalaVersion in ThisBuild := " 2.12.6"
4
4
5
- crossScalaVersions in ThisBuild := Seq (scalaVersion.value, " 2.11.12" )
5
+ crossScalaVersions in ThisBuild := Seq (scalaVersion.value, " 2.11.12" , " 2.13.0-M5 " )
6
6
7
7
val library =
8
8
crossProject(JSPlatform , JVMPlatform )
@@ -13,9 +13,9 @@ val library =
13
13
name := " play-json-derived-codecs" ,
14
14
libraryDependencies ++= Seq (
15
15
" com.chuusai" %%% " shapeless" % " 2.3.3" ,
16
- " org.scalatest" %%% " scalatest" % " 3.0.5 " % Test ,
17
- " org.scalacheck" %%% " scalacheck" % " 1.13.5 " % Test ,
18
- " com.typesafe.play" %%% " play-json" % " 2.6.9 "
16
+ " org.scalatest" %%% " scalatest" % " 3.0.6-SNAP6 " % Test ,
17
+ " org.scalacheck" %%% " scalacheck" % " 1.14.0 " % Test ,
18
+ " com.typesafe.play" %%% " play-json" % " 2.7.0 "
19
19
),
20
20
publishTo := {
21
21
val nexus = " https://oss.sonatype.org"
@@ -38,20 +38,23 @@ val library =
38
38
s " scm:git:git@github.com:julienrf/ ${name.value}.git "
39
39
)
40
40
),
41
- scalacOptions ++= Seq (
42
- " -deprecation" ,
43
- " -encoding" , " UTF-8" ,
44
- " -feature" ,
45
- " -unchecked" ,
46
- // "-Yinline-warnings",
47
- " -Yno-adapted-args" ,
48
- " -Ywarn-dead-code" ,
49
- " -Ywarn-numeric-widen" ,
50
- " -Ywarn-unused-import" ,
51
- " -Ywarn-value-discard" ,
52
- " -Xlint" ,
53
- " -Xfuture"
54
- ),
41
+ scalacOptions ++= {
42
+ Seq (
43
+ " -deprecation" ,
44
+ " -encoding" , " UTF-8" ,
45
+ " -feature" ,
46
+ " -unchecked" ,
47
+ " -Ywarn-dead-code" ,
48
+ " -Ywarn-numeric-widen" ,
49
+ " -Ywarn-value-discard" ,
50
+ " -Xlint" ,
51
+ " -Xfuture"
52
+ ) ++
53
+ (CrossVersion .partialVersion(scalaVersion.value) match {
54
+ case Some ((2 , n)) if n >= 13 => Seq (" -Xsource:2.14" )
55
+ case _ => Seq (" -Yno-adapted-args" , " -Ywarn-unused-import" )
56
+ })
57
+ },
55
58
scalacOptions in Test += " -Yrangepos"
56
59
)
57
60
0 commit comments