-
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
090e1a0
commit ee96a27
Showing
6 changed files
with
82 additions
and
74 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 |
---|---|---|
@@ -1,5 +1,42 @@ | ||
.idea/ | ||
# ------------------ autogenerated file - do not edit ------------------- | ||
# This file was generated by sbt-laserdisc-defaults | ||
# | ||
# Please check in any changes generated in this file (for IDE support) | ||
# | ||
# To make changes, please publish a new version of the plugin at: | ||
# https://github.com/laserdisc-io/sbt-laserdisc-defaults | ||
# | ||
# To temporarily disable generation, set this at the top of build.sbt: | ||
# ThisBuild / laserdiscGitIgnoreGenOn := false | ||
# ----------------------------------------------------------------------- | ||
|
||
# tip: use a "global" gitignore (core.excludesfile) for your own, local, personal preferences | ||
# See: https://gist.github.com/subfuzion/db7f57fff2fb6998a16c | ||
|
||
# scala / sbt / java | ||
project/project/ | ||
project/target/ | ||
target/ | ||
.cache | ||
.sbtopts | ||
.tasty | ||
|
||
# intellij | ||
.idea/ | ||
*.iml | ||
|
||
# metals / bsp | ||
.metals/ | ||
.bloop/ | ||
.bsp/ | ||
.DS_Store | ||
project/metals.sbt | ||
|
||
# vscode | ||
.vscode/ | ||
|
||
# terraform | ||
.terraform/ | ||
*.tfplan | ||
*.terraform.lock.hcl | ||
|
||
# mac | ||
.DS_Store |
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 |
---|---|---|
@@ -1,72 +1,18 @@ | ||
lazy val scala213 = "2.13.15" | ||
lazy val scala3 = "3.3.4" | ||
import laserdisc.sbt.CompileTarget.Scala2And3 | ||
import laserdisc.sbt.LaserDiscDevelopers.* | ||
|
||
ThisBuild / laserdiscRepoName := "scanamo-circe" | ||
ThisBuild / laserdiscCompileTarget := Scala2And3 | ||
|
||
lazy val root = project | ||
.in(file(".")) | ||
.settings( | ||
name := "scanamo-circe", | ||
organization := "io.laserdisc", | ||
crossScalaVersions := List(scala213, scala3), | ||
scalaVersion := scala3, | ||
licenses ++= Seq(("MIT", url("http://opensource.org/licenses/MIT"))), | ||
homepage := Some(url("https://github.com/laserdisc-io/scanamo-circe")), | ||
developers := List( | ||
Developer("semenodm", "Dmytro Semenov", "", url("https://github.com/semenodm")), | ||
Developer("barryoneill", "Barry O'Neill", "", url("https://github.com/barryoneill")) | ||
), | ||
Test / fork := true, | ||
scalacOptions ++= Seq( | ||
"-deprecation", | ||
"-encoding", | ||
"UTF-8", | ||
"-feature", | ||
"-language:existentials,experimental.macros,higherKinds,implicitConversions,postfixOps", | ||
"-unchecked", | ||
"-Xfatal-warnings" | ||
), | ||
scalacOptions ++= { | ||
CrossVersion.partialVersion(scalaVersion.value) match { | ||
case Some((2, minor)) if minor >= 13 => | ||
Seq( | ||
"-Xlint:-unused,_", | ||
"-Ywarn-numeric-widen", | ||
"-Ywarn-value-discard", | ||
"-Ywarn-unused:implicits", | ||
"-Ywarn-unused:imports", | ||
"-Xsource:3", | ||
"-Xlint:-byname-implicit", | ||
"-P:kind-projector:underscore-placeholders", | ||
"-Xlint", | ||
"-Ywarn-macros:after" | ||
) | ||
case _ => Seq.empty | ||
} | ||
}, | ||
scalacOptions ++= { | ||
CrossVersion.partialVersion(scalaVersion.value) match { | ||
case Some((3, _)) => | ||
Seq( | ||
"-Ykind-projector:underscores", | ||
"-source:future", | ||
"-language:adhocExtensions", | ||
"-Wconf:msg=`= _` has been deprecated; use `= uninitialized` instead.:s" | ||
) | ||
case _ => Seq.empty | ||
} | ||
}, | ||
sbt.Test / testFrameworks += TestFrameworks.ScalaCheck, | ||
libraryDependencies ++= Seq( | ||
compilerPlugin(("org.typelevel" %% "kind-projector" % "0.13.3").cross(CrossVersion.full)), | ||
compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1") | ||
).filterNot(_ => scalaVersion.value.startsWith("3.")), | ||
name := "scanamo-circe", | ||
developers := List(Dmytro, Barry), | ||
Dependencies.Compat, | ||
Dependencies.Circe, | ||
Dependencies.Scanamo, | ||
Dependencies.ScalaTest, | ||
Dependencies.scalacheck, | ||
addCommandAlias("format", ";scalafmtAll;scalafmtSbt"), | ||
addCommandAlias("checkFormat", ";scalafmtCheckAll;scalafmtCheck"), | ||
addCommandAlias("build", ";checkFormat;clean;test;coverage"), | ||
addCommandAlias("release", ";checkFormat;clean;test;coverage;release") | ||
Dependencies.scalacheck | ||
) | ||
.enablePlugins(ScalafmtPlugin) | ||
.enablePlugins(LaserDiscDefaultsPlugin) |
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 |
---|---|---|
@@ -1 +1,13 @@ | ||
sbt.version=1.10.2 | ||
# ------------------ autogenerated file - do not edit ------------------- | ||
# This file was generated by sbt-laserdisc-defaults | ||
# | ||
# Please check in any changes generated in this file (for IDE support) | ||
# | ||
# To make changes, please publish a new version of the plugin at: | ||
# https://github.com/laserdisc-io/sbt-laserdisc-defaults | ||
# | ||
# To temporarily disable generation, set this at the top of build.sbt: | ||
# ThisBuild / laserdiscSBTVersionGenOn := false | ||
# ----------------------------------------------------------------------- | ||
|
||
sbt.version = 1.10.5 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.5") | ||
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.2") | ||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12") | ||
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.11") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.2.2") | ||
addSbtPlugin("io.laserdisc" % "sbt-laserdisc-defaults" % "0.2.0") | ||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.9.0") |