Commit 229292e 1 parent e396c14 commit 229292e Copy full SHA for 229292e
File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package pamflet
2
2
import java .io .File
3
3
4
4
class Pamflet extends xsbti.AppMain {
5
- def run (config : xsbti.AppConfiguration ) = {
5
+ def run (config : xsbti.AppConfiguration ): xsbti. MainResult = {
6
6
Exit (Pamflet .run(config.arguments))
7
7
}
8
8
case class Exit (val code : Int ) extends xsbti.Exit
Original file line number Diff line number Diff line change @@ -27,6 +27,14 @@ ThisBuild / publishTo := sonatypePublishToBundle.value
27
27
28
28
lazy val common = Seq (
29
29
scalacOptions ++= Seq (" -language:_" , " -deprecation" ),
30
+ scalacOptions ++= {
31
+ scalaBinaryVersion.value match {
32
+ case " 3" =>
33
+ Nil
34
+ case _ =>
35
+ Seq (" -Xsource:3" )
36
+ }
37
+ },
30
38
scalacOptions ++= {
31
39
CrossVersion .partialVersion(scalaVersion.value) match {
32
40
case Some ((2 , v)) if v <= 12 => Seq (" -Yno-adapted-args" , " -Xfuture" )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import scala.util.matching.Regex
5
5
6
6
trait SmartyDiscounter extends Discounter {
7
7
override def createSpanConverter (
8
- linkDefinitions : collection.Seq [LinkDefinitionChunk ]) =
8
+ linkDefinitions : collection.Seq [LinkDefinitionChunk ]): SpanConverter =
9
9
new SpanConverter (linkDefinitions) with SmartySpanConverter
10
10
}
11
11
You can’t perform that action at this time.
0 commit comments