Skip to content

Commit

Permalink
added missing project files
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-cros committed Oct 27, 2021
1 parent e341333 commit a8f539b
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
35 changes: 35 additions & 0 deletions project/GalliaCommonSettings.scala
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 = "contact.galliaproject@gmail.com",
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" ) })

}

// ===========================================================================

15 changes: 15 additions & 0 deletions project/GalliaScalaVersions.scala
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)
}

// ===========================================================================

1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.4.7
2 changes: 2 additions & 0 deletions project/plugins.sbt
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

0 comments on commit a8f539b

Please sign in to comment.