@@ -72,11 +72,11 @@ lazy val scalaJava8Compat = (project in file("."))
72
72
73
73
libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test" ,
74
74
75
- scalaModuleMimaPreviousVersion := {
75
+ scalaModuleMimaPreviousVersion := ( CrossVersion .partialVersion(scalaVersion.value) match {
76
76
// pending resolution of https://github.com/scalacenter/sbt-version-policy/issues/62
77
- if (isDotty.value) None
78
- else Some (" 0.9.1" )
79
- },
77
+ case Some (( 3 , _)) => None
78
+ case _ => Some (" 0.9.1" )
79
+ }) ,
80
80
81
81
mimaBinaryIssueFilters ++= {
82
82
import com .typesafe .tools .mima .core ._ , ProblemFilters ._
@@ -146,14 +146,14 @@ lazy val scalaJava8Compat = (project in file("."))
146
146
},
147
147
JavaDoc / javacOptions := Seq (" -Xdoclint:none" ),
148
148
JavaDoc / packageDoc / artifactName := ((sv, mod, art) => " " + mod.name + " _" + sv.binary + " -" + mod.revision + " -javadoc.jar" ),
149
- libraryDependencies ++= (
150
- if (isDotty.value) Seq ()
151
- else Seq (compilerPlugin(" com.typesafe.genjavadoc" % " genjavadoc-plugin" % " 0.16" cross CrossVersion .full))
152
- ),
153
- Compile / scalacOptions ++= (
154
- if (isDotty.value) Seq ()
155
- else Seq (s """ -P:genjavadoc:out= ${target.value / " java" }""" )
156
- ),
149
+ libraryDependencies ++= (CrossVersion .partialVersion(scalaVersion.value) match {
150
+ case Some (( 3 , _)) => Seq ()
151
+ case _ => Seq (compilerPlugin(" com.typesafe.genjavadoc" % " genjavadoc-plugin" % " 0.16" cross CrossVersion .full))
152
+ } ),
153
+ Compile / scalacOptions ++= (CrossVersion .partialVersion(scalaVersion.value) match {
154
+ case Some (( 3 , _)) => Seq ()
155
+ case _ => Seq (s """ -P:genjavadoc:out= ${target.value / " java" }""" )
156
+ } ),
157
157
)
158
158
}
159
159
)
0 commit comments