-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize build.sbt. Add coverage tool.
- Loading branch information
Showing
6 changed files
with
112 additions
and
49 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 |
---|---|---|
@@ -1,16 +1,66 @@ | ||
out/ | ||
target/ | ||
project/target | ||
project/project | ||
docs/generated | ||
.addons-dont-touch | ||
/lib/ | ||
/test_lib/ | ||
/testbuild/ | ||
obj_dir | ||
test_run_dir | ||
generated | ||
# Scala .gitignore | ||
# | ||
# JARs aren't checked in, they are fetched by sbt | ||
# | ||
/lib/*.jar | ||
/test/files/codelib/*.jar | ||
/test/files/lib/*.jar | ||
/test/files/speclib/instrumented.jar | ||
/tools/*.jar | ||
|
||
# Developer specific properties | ||
/build.properties | ||
/buildcharacter.properties | ||
|
||
# might get generated when testing Jenkins scripts locally | ||
/jenkins.properties | ||
|
||
# target directory for build | ||
/build/ | ||
|
||
# other | ||
/out/ | ||
/bin/ | ||
/sandbox/ | ||
|
||
# intellij | ||
/src/intellij*/*.iml | ||
/src/intellij*/*.ipr | ||
/src/intellij*/*.iws | ||
**/.cache | ||
/.idea | ||
/.settings | ||
|
||
# vscode | ||
/.vscode | ||
|
||
# Standard symbolic link to build/quick/bin | ||
/qbin | ||
|
||
# sbt's target directories | ||
/target/ | ||
/project/**/target/ | ||
/test/macro-annot/target/ | ||
/test/files/target/ | ||
/test/target/ | ||
/build-sbt/ | ||
local.sbt | ||
jitwatch.out | ||
|
||
# Used by the restarr/restarrFull commands as target directories | ||
/build-restarr/ | ||
/target-restarr/ | ||
|
||
# metals | ||
.metals | ||
.bloop | ||
project/**/metals.sbt | ||
project/metals.sbt | ||
|
||
# custom | ||
.bsp | ||
.vscode | ||
.addons-dont-touch | ||
.DS_Store | ||
generated | ||
docs/generated | ||
test_run_dir |
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,39 +1,49 @@ | ||
name := "scalautils" | ||
organization := "com.carlosedp" | ||
version := "0.4.0" | ||
scalaVersion := "2.13.6" | ||
|
||
homepage := Some(url("https://carlosedp.com")) | ||
ThisBuild / organization := "com.carlosedp" | ||
ThisBuild / version := "0.4.0" | ||
ThisBuild / scalaVersion := "2.13.6" | ||
ThisBuild / homepage := Some(url("https://carlosedp.com")) | ||
ThisBuild / licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT")) | ||
scmInfo := Some(ScmInfo(url("https://github.com/carlosedp/scalautils"), "git@github.com:carlosedp/scalautils.git")) | ||
developers := List(Developer("carlosedp", "carlosedp", "carlosedp@gmail.com", url("https://github.com/carlosedp"))) | ||
ThisBuild / scmInfo := Some( | ||
ScmInfo(url("https://github.com/carlosedp/scalautils"), "git@github.com:carlosedp/scalautils.git") | ||
) | ||
ThisBuild / developers := List( | ||
Developer("carlosedp", "carlosedp", "carlosedp@gmail.com", url("https://github.com/carlosedp")) | ||
) | ||
semanticdbEnabled := true | ||
semanticdbVersion := "4.4.27" | ||
semanticdbVersion := "4.4.27" //scalafixSemanticdb.revision // Force version due to compatibility issues | ||
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.5.0" | ||
|
||
crossScalaVersions := Seq("2.11.12", "2.12.13", "2.13.6") | ||
publishConfiguration := publishConfiguration.value.withOverwrite(true) | ||
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true) | ||
publishMavenStyle := true | ||
lazy val root = (project in file(".")) | ||
.settings( | ||
name := "scalautils", | ||
crossScalaVersions := Seq("2.11.12", "2.12.13", "2.13.6", "3.0.2"), | ||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.9", | ||
sonatypeRepository := "https://s01.oss.sonatype.org/service/local", | ||
sonatypeCredentialHost := "s01.oss.sonatype.org", | ||
publishConfiguration := publishConfiguration.value.withOverwrite(true), | ||
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true), | ||
publishMavenStyle := true | ||
) | ||
|
||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.9" | ||
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.5.0" | ||
ThisBuild / publishTo := { | ||
val nexus = "https://s01.oss.sonatype.org/" | ||
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
} | ||
|
||
addCommandAlias("fix", "all compile:scalafix test:scalafix") | ||
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll;all compile:scalafix test:scalafix") | ||
addCommandAlias("fix", "all Compile / scalafix Test / scalafix") | ||
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll") | ||
addCommandAlias("lint", "fmt;fix") | ||
addCommandAlias("deps", "dependencyUpdates") | ||
addCommandAlias("xtest", "+test") | ||
addCommandAlias("release", "+publishSigned;sonatypeBundleRelease") | ||
|
||
scalacOptions ++= Seq( | ||
"-deprecation", | ||
"-explaintypes", | ||
"-unchecked", | ||
"-feature", | ||
"-Ywarn-value-discard", | ||
"-Ywarn-dead-code", | ||
"-Ywarn-unused" | ||
) | ||
|
||
sonatypeRepository := "https://s01.oss.sonatype.org/service/local" | ||
sonatypeCredentialHost := "s01.oss.sonatype.org" | ||
ThisBuild / publishTo := { | ||
val nexus = "https://s01.oss.sonatype.org/" | ||
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
} |
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.27") | ||
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.3") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.27") | ||
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.3") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.0") |