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-03 09:12:43 +05:30
organization := "com.example",
2022-04-13 07:34:11 +05:30
scalaVersion := "3.1.2",
2022-04-06 20:29:04 +05:30
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.0.31",
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-filters" % "4.0.31",
2022-04-05 14:45:59 +02:00
libraryDependencies += "org.json4s" %% "json4s-jackson" % "4.0.5"
2018-01-03 09:12:43 +05:30
)
2021-04-12 19:55:27 +05:30
Compile / unmanagedResourceDirectories += { baseDirectory.value / "lib" }
scalacOptions ++= List(
"-deprecation"
)
javacOptions += "-g:none"
compileOrder := CompileOrder.JavaThenScala
javafmtOnCompile := false
2021-04-12 19:55:27 +05:30
assembly / mainClass := Some("lc.LCFramework")
Compile / run / mainClass := Some("lc.LCFramework")
2021-12-15 22:54:00 +01:00
assembly / assemblyJarName := "LibreCaptcha.jar"
ThisBuild / assemblyMergeStrategy := {
2022-01-02 05:26:42 +01: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 19:55:27 +05:30
run / fork := true