-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.sbt
More file actions
35 lines (32 loc) · 1.49 KB
/
build.sbt
File metadata and controls
35 lines (32 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
val scala212 = "2.12.19"
val scala213 = "2.13.12"
val scala3 = "3.3.3"
ThisBuild / scalaVersion := scala212
ThisBuild / crossScalaVersions := Seq(scala212, scala213, scala3)
lazy val `codacy-plugins-api` =
crossProject(JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.settings(name := "codacy-plugins-api",
organization := "com.codacy",
libraryDependencies ++= Seq("wordspec", "shouldmatchers").map(m =>
"org.scalatest" %%% s"scalatest-$m" % "3.2.18" % Test),
Compile / unmanagedSourceDirectories += {
val sourceDir = (ThisBuild / baseDirectory).value / name.value / "src" / "main"
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((major, minor)) if major > 2 || minor >= 13 =>
sourceDir / "scala-2.13+"
case _ =>
sourceDir / "scala-2.13-"
}
},
pgpPassphrase := Option(System.getenv("SONATYPE_GPG_PASSPHRASE")).map(_.toCharArray),
description := "A dependency free api for Codacy Tools",
scmInfo := Some(
ScmInfo(url("https://github.com/codacy/codacy-plugins-api"),
"scm:git:git@github.com:codacy/codacy-plugins-api.git")),
publicMvnPublish)
lazy val root =
project
.in(file("."))
.settings(publish / skip := true)
.aggregate(`codacy-plugins-api`.jvm, `codacy-plugins-api`.native)