@@ -48,6 +48,7 @@ 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" ),
51
52
run / fork := true , // Needed if you run this project directly
52
53
libraryDependencies += " org.scala-lang" % " scala-reflect" % scalaVersion.value,
53
54
libraryDependencies += " org.scala-lang" % " scala-compiler" % scalaVersion.value
@@ -73,10 +74,11 @@ lazy val scalaJava8Compat = (project in file("."))
73
74
74
75
libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test" ,
75
76
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" ),
77
+ scalaModuleMimaPreviousVersion := {
78
+ // pending resolution of https://github.com/scalacenter/sbt-version-policy/issues/62
79
+ if (isDotty.value) None
80
+ else Some (" 0.9.1" )
81
+ },
80
82
81
83
mimaBinaryIssueFilters ++= {
82
84
import com .typesafe .tools .mima .core ._ , ProblemFilters ._
@@ -146,8 +148,14 @@ lazy val scalaJava8Compat = (project in file("."))
146
148
},
147
149
JavaDoc / javacOptions := Seq (" -Xdoclint:none" ),
148
150
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" )
151
+ libraryDependencies ++= (
152
+ if (isDotty.value) Seq ()
153
+ else Seq (compilerPlugin(" com.typesafe.genjavadoc" % " genjavadoc-plugin" % " 0.16" cross CrossVersion .full))
154
+ ),
155
+ Compile / scalacOptions ++= (
156
+ if (isDotty.value) Seq ()
157
+ else Seq (s """ -P:genjavadoc:out= ${target.value / " java" }""" )
158
+ ),
151
159
)
152
160
}
153
161
)
0 commit comments