-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
32 lines (24 loc) · 986 Bytes
/
build.sbt
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
import com.typesafe.sbt.packager.docker.Cmd
import sjsonnew._
import sjsonnew.BasicJsonProtocol._
import sjsonnew.support.scalajson.unsafe._
name := "codacy-checkstyle"
scalaVersion := "2.13.3"
lazy val checkstyleVersion = "10.21.1"
Compile / sourceGenerators += Def.task {
val file = (Compile / sourceManaged).value / "codacy" / "checkstyle" / "Versions.scala"
IO.write(file, s"""package codacy.checkstyle
|object Versions {
| val checkstyleVersion: String = "$checkstyleVersion"
|}
|""".stripMargin)
Seq(file)
}.taskValue
Compile / mainClass := Some("codacy.Engine")
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % "1.2.0",
"com.codacy" %% "codacy-engine-scala-seed" % "5.0.3",
"com.puppycrawl.tools" % "checkstyle" % checkstyleVersion
)
Universal / javaOptions ++= Seq("-XX:MinRAMPercentage=60.0", "-XX:MaxRAMPercentage=90.0")
enablePlugins(JavaAppPackaging)