lc-core/build.sbt

40 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

lazy val root = (project in file(".")).settings(
inThisBuild(
List(
2018-01-02 22:42:43 -05:00
organization := "com.example",
2022-02-01 19:36:43 -05:00
scalaVersion := "3.1.1",
version := "0.1.0-SNAPSHOT",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
// This is apparently not supported on Scala 3 currently
// scalafixScalaBinaryVersion := "3.1"
)
),
name := "LibreCaptcha",
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-core" % "4.0.30",
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-filters" % "4.0.30",
2022-01-23 02:15:38 -05:00
libraryDependencies += "org.json4s" %% "json4s-jackson" % "4.0.4"
2018-01-02 22:42:43 -05:00
)
2021-04-12 10:25:27 -04:00
Compile / unmanagedResourceDirectories += { baseDirectory.value / "lib" }
scalacOptions ++= List(
"-deprecation"
)
javacOptions += "-g:none"
compileOrder := CompileOrder.JavaThenScala
javafmtOnCompile := false
2021-04-12 10:25:27 -04:00
assembly / mainClass := Some("lc.LCFramework")
Compile / run / mainClass := Some("lc.LCFramework")
2021-12-15 16:54:00 -05:00
assembly / assemblyJarName := "LibreCaptcha.jar"
ThisBuild / assemblyMergeStrategy := {
2022-01-01 23:26:42 -05:00
case PathList("module-info.class") => MergeStrategy.discard
case x if x.endsWith("/module-info.class") => MergeStrategy.discard
case x =>
val oldStrategy = (ThisBuild / assemblyMergeStrategy).value
oldStrategy(x)
}
2021-04-12 10:25:27 -04:00
run / fork := true