File tree Expand file tree Collapse file tree 6 files changed +28
-16
lines changed
Expand file tree Collapse file tree 6 files changed +28
-16
lines changed Original file line number Diff line number Diff line change 11version : 2.1
22
33orbs :
4- codacy : codacy/base@10.11 .0
4+ codacy : codacy/base@12.2 .0
5566
77references :
@@ -186,8 +186,7 @@ workflows:
186186 name : lint
187187 install_sbt_version : 1.8.2
188188 cmd : |
189- sbt "scalafmtCheckAll;scalafmtSbtCheck;scapegoat;scalafixEnable;scalafix --test"
190- cache_prefix : *cache_prefix
189+ sbt "scalafmtCheckAll;scalafmtSbtCheck;scalafixEnable;scalafix --test"
191190 requires :
192191 - compile
193192 - codacy/sbt :
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ val assemblyCommon = Seq(
1919inThisBuild(
2020 Seq (
2121 scalaVersion := Common .scalaVersionNumber,
22- scalaBinaryVersion := Common .scalaBinaryVersionNumber,
23- scapegoatDisabledInspections := Seq (),
24- scapegoatVersion := " 1.4.6" ))
22+ scalaBinaryVersion := Common .scalaBinaryVersionNumber))
2523
2624val sonatypeInformation = Seq (
2725 startYear := Some (2018 ),
@@ -38,6 +36,7 @@ lazy val codacyAnalysisCore = project
3836 .settings(name := " codacy-analysis-core" )
3937 .settings(coverageExcludedPackages := " <empty>;com\\ .codacy\\ ..*Error.*" )
4038 .settings(Common .genericSettings)
39+ .settings(Common .scapegoatSettings)
4140 .settings(
4241 // App Dependencies
4342 libraryDependencies ++= Seq (
@@ -87,6 +86,7 @@ lazy val codacyAnalysisModels = project
8786 crossScalaVersions := Common .supportedScalaVersions,
8887 name := " codacy-analysis-cli-model" ,
8988 Common .genericSettings,
89+ Common .scapegoatSettings,
9090 libraryDependencies ++=
9191 Dependencies .circe ++ Seq (Dependencies .pluginsApi) ++ Dependencies .specs2,
9292 description := " Library with analysis models" )
Original file line number Diff line number Diff line change @@ -11,12 +11,23 @@ object Common {
1111
1212 private val defaultDockerInstallationPath = " /opt/codacy"
1313 val scalaBinaryVersionNumber = " 2.12"
14- val scalaVersionNumber = s " $scalaBinaryVersionNumber.12 "
14+ val scalaVersionNumber = s " $scalaBinaryVersionNumber.19 "
1515
1616 val scala213BinaryVersionNumber = " 2.13"
17- val scala213VersionNumber = s " $scala213BinaryVersionNumber.3 "
17+ val scala213VersionNumber = s " $scala213BinaryVersionNumber.14 "
1818 lazy val supportedScalaVersions = List (Common .scalaVersionNumber, Common .scala213VersionNumber)
1919
20+ val scapegoatSettings = Seq (
21+ libraryDependencies += compilerPlugin(
22+ " com.sksamuel.scapegoat" % s " scalac-scapegoat-plugin_ ${scalaVersion.value}" % (scalaVersion.value match {
23+ case v if v.startsWith(" 2.12" ) => " 3.1.9"
24+ case v if v.startsWith(" 2.13" ) => " 3.1.2"
25+ case _ => " 3.1.9"
26+ })),
27+ scalacOptions ++= Seq (
28+ s " -P:scapegoat:dataDir: ${crossTarget.value}/scapegoat-report " ,
29+ " -P:scapegoat:reports:xml:html:markdown" ))
30+
2031 val genericSettings = Seq (
2132 scalacOptions ++= Common .compilerFlags(scalaVersion.value),
2233 Test / scalacOptions += " -Yrangepos" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ object Dependencies {
66 val circeVersion = " 0.12.3"
77 val specs2Version = " 4.8.1"
88 val codacyApiVersion = " 26.20.0"
9- val silencerVersion = " 1.7.0 "
9+ val silencerVersion = " 1.7.19 "
1010
1111 lazy val circe = List (
1212 " io.circe" %% " circe-core" % circeVersion,
@@ -42,8 +42,8 @@ object Dependencies {
4242
4343 lazy val typesafeConfig = " com.typesafe" % " config" % " 1.4.0"
4444
45- val akkaVersion = " 2.5.26 "
46- val akkaHttpVersion = " 10.1.9 "
45+ val akkaVersion = " 2.6.20 "
46+ val akkaHttpVersion = " 10.2.10 "
4747
4848 val akka =
4949 Seq (
Original file line number Diff line number Diff line change 1- sbt.version =1.9.9
1+ sbt.version =1.10.5
Original file line number Diff line number Diff line change 11addSbtPlugin(" com.codacy" % " codacy-sbt-plugin" % " 25.2.4" )
22
33// Coverage
4- addSbtPlugin(" org.scoverage" % " sbt-scoverage" % " 2.0.6 " )
4+ addSbtPlugin(" org.scoverage" % " sbt-scoverage" % " 2.3.0 " )
55
66// Static Analysis
7- addSbtPlugin(" com.sksamuel.scapegoat" %% " sbt-scapegoat" % " 1.1.0" )
8- addSbtPlugin(" ch.epfl.scala" % " sbt-scalafix" % " 0.9.21" )
7+ // Commented out due to Scala version conflicts, it kept trying to fetch non existing
8+ // /scalac-scapegoat-plugin_2.12.15/3.1.9
9+ // addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.2.13")
10+ addSbtPlugin(" ch.epfl.scala" % " sbt-scalafix" % " 0.9.34" )
911
1012// Dependencies
11- addSbtPlugin(" com.eed3si9n" % " sbt-assembly" % " 0.15.0 " )
13+ addSbtPlugin(" com.eed3si9n" % " sbt-assembly" % " 2.1.5 " )
1214
1315// Swagger code generation
1416addSbtPlugin(" com.twilio" % " sbt-guardrail" % " 0.59.0" )
You can’t perform that action at this time.
0 commit comments