lc-core/build.sbt

41 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",
2021-12-09 12:43:48 -05:00
scalaVersion := "2.13.7",
version := "0.1.0-SNAPSHOT",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalafixScalaBinaryVersion := "2.13"
)
),
name := "LibreCaptcha",
2021-12-09 12:54:38 -05:00
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-core" % "4.0.24",
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-filters" % "4.0.24",
2021-12-16 03:50:17 -05:00
libraryDependencies += "org.json4s" % "json4s-jackson_2.13" % "4.0.3"
2018-01-02 22:42:43 -05:00
)
2021-04-12 10:25:27 -04:00
Compile / unmanagedResourceDirectories += { baseDirectory.value / "lib" }
scalacOptions ++= List(
"-Yrangepos",
2021-04-01 07:32:25 -04:00
"-Ywarn-unused",
2021-12-09 12:55:03 -05:00
"-deprecation",
"-Xsource:3"
)
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