-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
22 changed files
with
155 additions
and
95 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
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 |
---|---|---|
|
@@ -9,3 +9,5 @@ target/ | |
.classpath | ||
tmp/ | ||
.bsp/ | ||
.metals | ||
.vscode |
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,3 @@ | ||
rules = [ | ||
OrganizeImports | ||
] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,19 +3,11 @@ ThisBuild / crossScalaVersions := Seq("2.13.14", "2.12.19", "3.3.3") | |
ThisBuild / scalaVersion := crossScalaVersions.value.head | ||
ThisBuild / githubWorkflowPublishTargetBranches := Nil | ||
ThisBuild / startYear := Some(2016) | ||
ThisBuild / tlBaseVersion := "0.14" | ||
|
||
val compilerOptions = Seq( | ||
"-deprecation", | ||
"-encoding", | ||
"UTF-8", | ||
"-feature", | ||
"-language:existentials", | ||
"-language:higherKinds", | ||
"-unchecked", | ||
"-Ywarn-dead-code", | ||
"-Ywarn-numeric-widen" | ||
) | ||
ThisBuild / tlBaseVersion := "0.15" | ||
ThisBuild / scalafixAll / skip := tlIsScala3.value | ||
ThisBuild / ScalafixConfig / skip := tlIsScala3.value | ||
ThisBuild / tlCiScalafixCheck := false // TODO: Address these in a follow up PR | ||
ThisBuild / tlFatalWarnings := false // TODO: fix by dropping 2.12 | ||
|
||
val circeVersion = "0.14.8" | ||
val munitVersion = "1.0.0" | ||
|
@@ -29,34 +21,18 @@ def priorTo2_13(scalaVersion: String): Boolean = | |
} | ||
|
||
val baseSettings = Seq( | ||
scalacOptions ++= compilerOptions, | ||
scalacOptions ++= ( | ||
if (priorTo2_13(scalaVersion.value)) | ||
Seq( | ||
"-Xfuture", | ||
"-Yno-adapted-args", | ||
"-Ywarn-unused-import" | ||
) | ||
else | ||
Seq( | ||
"-Ywarn-unused:imports" | ||
) | ||
), | ||
Compile / console / scalacOptions ~= { | ||
_.filterNot(Set("-Ywarn-unused-import")) | ||
}, | ||
Test / console / scalacOptions ~= { | ||
_.filterNot(Set("-Ywarn-unused-import")) | ||
}, | ||
resolvers ++= Resolver.sonatypeOssRepos("releases"), | ||
resolvers ++= Resolver.sonatypeOssRepos("snapshots"), | ||
coverageHighlighting := true, | ||
coverageEnabled := (if (scalaVersion.value.startsWith("3")) false else coverageEnabled.value), | ||
coverageEnabled := !tlIsScala3.value, | ||
libraryDependencies ++= Seq( | ||
"io.circe" %% "circe-core" % circeVersion, | ||
"org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0", | ||
"io.circe" %% "circe-jawn" % circeVersion % Test, | ||
"io.circe" %% "circe-testing" % circeVersion % Test, | ||
"org.typelevel" %% "discipline-munit" % disciplineMunitVersion % Test | ||
"org.typelevel" %% "discipline-munit" % disciplineMunitVersion % Test, | ||
"org.scalameta" %% "munit" % munitVersion % Test, | ||
"org.scalameta" %% "munit-scalacheck" % munitVersion % Test | ||
), | ||
Compile / unmanagedSourceDirectories += (ThisBuild / baseDirectory).value / "shared/src/main", | ||
Test / unmanagedSourceDirectories += (ThisBuild / baseDirectory).value / "shared/src/test", | ||
|
@@ -137,7 +113,6 @@ lazy val jackson28 = project | |
"-sourcepath", | ||
(LocalRootProject / baseDirectory).value.getAbsolutePath | ||
), | ||
git.remoteRepo := "[email protected]:circe/circe-jackson.git", | ||
autoAPIMappings := true, | ||
apiURL := Some(url("https://circe.github.io/circe-jackson/api/")), | ||
mimaPreviousArtifacts := Set("io.circe" %% "circe-jackson28" % previousCirceJacksonVersion) | ||
|
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,3 +1,4 @@ | ||
addSbtPlugin("io.circe" % "sbt-circe-org" % "0.4.1") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3") | ||
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.6") | ||
addSbtPlugin("com.timushev.sbt" % "sbt-rewarn" % "0.1.3") |
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
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
Oops, something went wrong.