-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.sbt
34 lines (25 loc) · 1.33 KB
/
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
33
34
name := "codacy-plugins-test"
scalaVersion := "2.12.18"
// Needed to avoid ResourceLeak with Airframe-Log
run / fork := true
Global / cancelable := true
connectInput / run := true
outputStrategy := Some(StdoutOutput)
libraryDependencies ++= Seq("com.codacy" %% "codacy-analysis-core" % "7.9.4",
"com.lihaoyi" %% "pprint" % "0.8.1",
"org.wvlet.airframe" %% "airframe-log" % "21.3.0",
"org.scalatest" %% "scalatest" % "3.2.17")
enablePlugins(NativeImagePlugin)
nativeImageOptions ++= Seq("--enable-http",
"--enable-https",
"--enable-url-protocols=http,https,jar",
"-H:+JNI",
"-H:IncludeResourceBundles=com.sun.org.apache.xerces.internal.impl.msg.XMLMessages",
"-H:+AllowIncompleteClasspath",
"-H:+ReportExceptionStackTraces",
"--no-fallback",
"--report-unsupported-elements-at-runtime")
nativeImageVersion := "22.1.0"
Global / excludeLintKeys += nativeImageVersion
addCommandAlias("scalafixRun", "scalafixEnable; Compile / scalafix; Test / scalafix")
addCommandAlias("scalafixCheck", "scalafixEnable; Compile / scalafix --check; Test / scalafix --check")