lc-core/build.sbt

40 lines
1.3 KiB
Plaintext
Raw Normal View History

lazy val root = (project in file(".")).settings(
inThisBuild(
List(
2018-01-02 22:42:43 -05:00
organization := "com.example",
2024-08-23 11:33:05 -04:00
scalaVersion := "3.5.0",
2022-04-06 10:59:04 -04:00
version := "0.2.1-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.2.0",
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-filters" % "4.2.0",
2023-12-03 11:35:07 -05:00
libraryDependencies += "org.json4s" %% "json4s-jackson" % "4.0.7"
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