-
Notifications
You must be signed in to change notification settings - Fork 0
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
e341333
commit a8f539b
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
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,35 @@ | ||
import sbt ._ | ||
import sbt.Keys._ | ||
|
||
// =========================================================================== | ||
object GalliaCommonSettings { | ||
|
||
val mainSettings = Seq( | ||
organizationHomepage := Some(url("https://github.com/galliaproject")), | ||
startYear := Some(2021), | ||
developers := | ||
List(Developer( | ||
id = "anthony-cros", | ||
name = "Anthony Cros", | ||
email = "[email protected]", | ||
url = url("https://github.com/anthony-cros") )), | ||
|
||
// --------------------------------------------------------------------------- | ||
scalaVersion := GalliaScalaVersions.supported.head, | ||
crossScalaVersions := GalliaScalaVersions.supported) | ||
|
||
// =========================================================================== | ||
// TODO: t210121165741: -Xdisable-assertions (also turns off require?) | ||
scalacOptions ++= Seq( | ||
"-encoding", "UTF-8", | ||
//"-Yimports:java.lang,scala,scala.Predef,scala.util.chaining,aptus.Anything_" -- not possible for 2.12 it seems (TODO: t210308154253 confirm) | ||
"-Ywarn-value-discard") ++ | ||
// --------------------------------------------------------------------------- | ||
(scalaBinaryVersion.value match { | ||
case "2.13" => Seq("-Ywarn-unused:imports") | ||
case _ => Seq("-Ywarn-unused-import" ) }) | ||
|
||
} | ||
|
||
// =========================================================================== | ||
|
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,15 @@ | ||
import sbt._ | ||
|
||
// =========================================================================== | ||
object GalliaScalaVersions { | ||
val scala213 = "2.13.4" | ||
val scala212 = "2.12.13" | ||
|
||
// --------------------------------------------------------------------------- | ||
val supported = List( | ||
scala213, | ||
scala212) | ||
} | ||
|
||
// =========================================================================== | ||
|
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 @@ | ||
sbt.version=1.4.7 |
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,2 @@ | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1") // required by sbt-sonatype above |