@@ -27,19 +27,19 @@ lazy val commonSettings = Seq(
27
27
Compile / unmanagedSourceDirectories ++= {
28
28
(Compile / unmanagedSourceDirectories).value.flatMap { dir =>
29
29
CrossVersion .partialVersion(scalaVersion.value) match {
30
- case Some ((2 , 13 )) => Seq (file(dir.getPath ++ " -2.13+" ))
31
30
case Some ((2 , 11 )) => Seq (file(dir.getPath ++ " -2.13-" ), file(dir.getPath ++ " -2.11" ))
32
- case _ => Seq (file(dir.getPath ++ " -2.13-" ))
31
+ case Some ((2 , 12 )) => Seq (file(dir.getPath ++ " -2.13-" ))
32
+ case _ => Seq (file(dir.getPath ++ " -2.13+" ))
33
33
}
34
34
}
35
35
},
36
36
37
37
Test / unmanagedSourceDirectories ++= {
38
38
(Test / unmanagedSourceDirectories).value.flatMap { dir =>
39
39
CrossVersion .partialVersion(scalaVersion.value) match {
40
- case Some ((2 , 13 )) => Seq (file(dir.getPath ++ " -2.13+" ))
41
40
case Some ((2 , 11 )) => Seq (file(dir.getPath ++ " -2.13-" ), file(dir.getPath ++ " -2.11" ))
42
- case _ => Seq (file(dir.getPath ++ " -2.13-" ))
41
+ case Some ((2 , 12 )) => Seq (file(dir.getPath ++ " -2.13-" ))
42
+ case _ => Seq (file(dir.getPath ++ " -2.13+" ))
43
43
}
44
44
}
45
45
},
@@ -48,6 +48,8 @@ lazy val commonSettings = Seq(
48
48
lazy val fnGen = (project in file(" fnGen" ))
49
49
.settings(commonSettings)
50
50
.settings(
51
+ crossScalaVersions := Seq (" 2.12.13" ),
52
+ scalaVersion := crossScalaVersions.value.head,
51
53
run / fork := true , // Needed if you run this project directly
52
54
libraryDependencies += " org.scala-lang" % " scala-reflect" % scalaVersion.value,
53
55
libraryDependencies += " org.scala-lang" % " scala-compiler" % scalaVersion.value
@@ -73,10 +75,11 @@ lazy val scalaJava8Compat = (project in file("."))
73
75
74
76
libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test" ,
75
77
76
- // we're still in 0.x land so we could choose to break bincompat,
77
- // but let's at least be aware when we're doing it. also we should
78
- // think about going 1.0, it's been a while
79
- scalaModuleMimaPreviousVersion := Some (" 0.9.1" ),
78
+ scalaModuleMimaPreviousVersion := {
79
+ // pending resolution of https://github.com/scalacenter/sbt-version-policy/issues/62
80
+ if (isDotty.value) None
81
+ else Some (" 0.9.1" )
82
+ },
80
83
81
84
mimaBinaryIssueFilters ++= {
82
85
import com .typesafe .tools .mima .core ._ , ProblemFilters ._
@@ -146,8 +149,14 @@ lazy val scalaJava8Compat = (project in file("."))
146
149
},
147
150
JavaDoc / javacOptions := Seq (" -Xdoclint:none" ),
148
151
JavaDoc / packageDoc / artifactName := ((sv, mod, art) => " " + mod.name + " _" + sv.binary + " -" + mod.revision + " -javadoc.jar" ),
149
- libraryDependencies += compilerPlugin(" com.typesafe.genjavadoc" % " genjavadoc-plugin" % " 0.16" cross CrossVersion .full),
150
- Compile / scalacOptions += " -P:genjavadoc:out=" + (target.value / " java" )
152
+ libraryDependencies ++= (
153
+ if (isDotty.value) Seq ()
154
+ else Seq (compilerPlugin(" com.typesafe.genjavadoc" % " genjavadoc-plugin" % " 0.16" cross CrossVersion .full))
155
+ ),
156
+ Compile / scalacOptions ++= (
157
+ if (isDotty.value) Seq ()
158
+ else Seq (s """ -P:genjavadoc:out= ${target.value / " java" }""" )
159
+ ),
151
160
)
152
161
}
153
162
)
0 commit comments