-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8987cd7
commit f2f9800
Showing
39 changed files
with
109 additions
and
61 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...disc/mysql/binlog/models/BinaryLogs.scala → ...disc/mysql/binlog/models/BinaryLogs.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...l/binlog/models/DeleteRowsEventData.scala → ...l/binlog/models/DeleteRowsEventData.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c/mysql/binlog/models/EventHeaderV4.scala → ...c/mysql/binlog/models/EventHeaderV4.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../mysql/binlog/models/QueryEventData.scala → .../mysql/binlog/models/QueryEventData.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...mysql/binlog/models/RotateEventData.scala → ...mysql/binlog/models/RotateEventData.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../mysql/binlog/models/SchemaMetadata.scala → .../mysql/binlog/models/SchemaMetadata.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sql/binlog/models/TableMapEventData.scala → ...sql/binlog/models/TableMapEventData.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...l/binlog/models/UpdateRowsEventData.scala → ...l/binlog/models/UpdateRowsEventData.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...ql/binlog/models/WriteRowsEventData.scala → ...ql/binlog/models/WriteRowsEventData.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sc/mysql/binlog/models/XidEventData.scala → ...sc/mysql/binlog/models/XidEventData.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...serdisc/mysql/binlog/client/package.scala → ...serdisc/mysql/binlog/client/package.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...disc/mysql/binlog/database/database.scala → ...disc/mysql/binlog/database/database.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import sbt.* | ||
|
||
object BuildOptions { | ||
|
||
def scalacOptions(scalaVersion: String): Seq[String] = | ||
Scalac.Common ++ (CrossVersion.partialVersion(scalaVersion) match { | ||
case Some((3, _)) => Scalac.Version3x | ||
case Some((2, _)) => Scalac.Version2x | ||
case _ => Seq.empty | ||
}) | ||
|
||
def compilerPlugins(scalaVersion: String): Seq[sbt.ModuleID] = | ||
Compiler.Common ++ (CrossVersion.partialVersion(scalaVersion) match { | ||
case Some((2, _)) => Compiler.Scala2x | ||
case _ => Seq.empty | ||
}) | ||
|
||
object Scalac { | ||
|
||
lazy val Common: Seq[String] = Seq( | ||
"-encoding", | ||
"UTF-8", | ||
"-deprecation", | ||
"-unchecked", | ||
"-feature", | ||
"-language:existentials,experimental.macros,higherKinds,implicitConversions,postfixOps", | ||
"-Wconf:src=src_managed/.*:silent", | ||
"-Xfatal-warnings" | ||
) | ||
|
||
lazy val Version3x: Seq[String] = Seq( | ||
"-Yretain-trees", | ||
"-Ykind-projector:underscores", | ||
"-source:future", | ||
"-language:adhocExtensions", | ||
"-Wconf:msg=`= _` has been deprecated; use `= uninitialized` instead.:s" | ||
) | ||
|
||
lazy val Version2x: Seq[String] = Seq( | ||
"-Xlint:-unused,_", | ||
"-Ywarn-numeric-widen", | ||
"-Ywarn-value-discard", | ||
"-Ywarn-unused:implicits", | ||
"-Ywarn-unused:imports", | ||
"-Xsource:3", | ||
"-Xlint:_,-byname-implicit", // enable handy linter warnings except byname-implicit (see https://github.com/scala/bug/issues/12072) | ||
"-P:kind-projector:underscore-placeholders", | ||
"-Xlint", | ||
"-Ywarn-macros:after" | ||
) | ||
|
||
} | ||
|
||
object Compiler { | ||
|
||
lazy val Common: Seq[ModuleID] = Seq("org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0") | ||
|
||
lazy val Scala2x: Seq[ModuleID] = Seq( | ||
compilerPlugin(("org.typelevel" %% "kind-projector" % "0.13.3").cross(CrossVersion.full)), | ||
compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1") | ||
) | ||
|
||
} | ||
|
||
} |