2021-02-25 13:19:39 -05:00
|
|
|
lazy val root = (project in file(".")).settings(
|
|
|
|
inThisBuild(
|
|
|
|
List(
|
2018-01-02 22:42:43 -05:00
|
|
|
organization := "com.example",
|
2022-01-03 06:51:24 -05:00
|
|
|
scalaVersion := "3.1.0",
|
2021-02-25 13:19:39 -05:00
|
|
|
version := "0.1.0-SNAPSHOT",
|
|
|
|
semanticdbEnabled := true,
|
|
|
|
semanticdbVersion := scalafixSemanticdb.revision,
|
2022-01-03 06:51:24 -05:00
|
|
|
scalafixScalaBinaryVersion := "3.1"
|
2021-02-25 13:19:39 -05:00
|
|
|
)
|
|
|
|
),
|
|
|
|
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",
|
2022-01-03 06:51:24 -05:00
|
|
|
libraryDependencies += "org.json4s" %% "json4s-jackson" % "4.0.3"
|
2018-01-02 22:42:43 -05:00
|
|
|
)
|
2018-06-06 02:48:40 -04:00
|
|
|
|
2021-04-12 10:25:27 -04:00
|
|
|
Compile / unmanagedResourceDirectories += { baseDirectory.value / "lib" }
|
2021-02-25 13:19:39 -05:00
|
|
|
scalacOptions ++= List(
|
2021-12-09 12:55:03 -05:00
|
|
|
"-deprecation",
|
2021-02-25 13:19:39 -05:00
|
|
|
)
|
2018-12-17 03:04:24 -05:00
|
|
|
javacOptions += "-g:none"
|
|
|
|
compileOrder := CompileOrder.JavaThenScala
|
2021-04-21 04:57:19 -04:00
|
|
|
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"
|
2018-12-17 03:04:24 -05:00
|
|
|
|
2021-12-27 09:49:20 -05:00
|
|
|
ThisBuild / assemblyMergeStrategy := {
|
2022-01-01 23:26:42 -05:00
|
|
|
case PathList("module-info.class") => MergeStrategy.discard
|
2021-12-27 09:31:12 -05:00
|
|
|
case x if x.endsWith("/module-info.class") => MergeStrategy.discard
|
|
|
|
case x =>
|
2021-12-27 09:49:20 -05:00
|
|
|
val oldStrategy = (ThisBuild / assemblyMergeStrategy).value
|
2021-12-27 09:31:12 -05:00
|
|
|
oldStrategy(x)
|
|
|
|
}
|
|
|
|
|
2021-04-12 10:25:27 -04:00
|
|
|
run / fork := true
|