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",
|
2024-05-17 12:20:08 -04:00
|
|
|
scalaVersion := "3.4.2",
|
2022-04-06 10:59:04 -04:00
|
|
|
version := "0.2.1-snapshot",
|
2021-02-25 13:19:39 -05:00
|
|
|
semanticdbEnabled := true,
|
2022-01-11 13:35:58 -05:00
|
|
|
semanticdbVersion := scalafixSemanticdb.revision
|
2022-01-03 06:54:35 -05:00
|
|
|
|
|
|
|
// This is apparently not supported on Scala 3 currently
|
|
|
|
// scalafixScalaBinaryVersion := "3.1"
|
2021-02-25 13:19:39 -05:00
|
|
|
)
|
|
|
|
),
|
|
|
|
name := "LibreCaptcha",
|
2024-04-27 12:16:50 -04:00
|
|
|
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-core" % "4.1.3",
|
|
|
|
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-filters" % "4.1.3",
|
2023-12-03 11:35:07 -05:00
|
|
|
libraryDependencies += "org.json4s" %% "json4s-jackson" % "4.0.7"
|
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(
|
2022-01-11 13:35:58 -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
|