Skip to content

Commit 5728bc8

Browse files
authored
Merge pull request #72 from codacy/support-scala-3
feature: Support Scala 3
2 parents d29f8a4 + c4d3777 commit 5728bc8

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ target
77
.bloop
88
/libexec/
99
/bin/
10+
/.bsp

build.sbt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
val scala211 = "2.11.12"
22
val scala212 = "2.12.10"
33
val scala213 = "2.13.10"
4+
val scala3 = "3.2.2"
45

56
name := "codacy-plugins-api"
67
organization := "com.codacy"
78

89
scalaVersion := scala212
910

10-
crossScalaVersions := Seq(scala211, scala212, scala213)
11+
crossScalaVersions := Seq(scala211, scala212, scala213, scala3)
1112

1213
libraryDependencies ++= Seq("wordspec", "shouldmatchers").map(m => "org.scalatest" %% s"scalatest-$m" % "3.2.14" % Test)
1314

14-
unmanagedSourceDirectories in Compile += {
15+
Compile / unmanagedSourceDirectories += {
1516
val sourceDir = (sourceDirectory in Compile).value
1617
CrossVersion.partialVersion(scalaVersion.value) match {
17-
case Some((2, n)) if n >= 13 => sourceDir / "scala-2.13+"
18-
case _ => sourceDir / "scala-2.13-"
18+
case Some((major, minor)) if major > 2 || minor >= 13 =>
19+
sourceDir / "scala-2.13+"
20+
case _ =>
21+
sourceDir / "scala-2.13-"
1922
}
2023
}
2124

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.8.0
1+
sbt.version=1.8.2

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "25.0.0")
1+
addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "25.1.1")

0 commit comments

Comments
 (0)