2021-02-25 23:49:39 +05:30
|
|
|
lazy val root = (project in file(".")).settings(
|
|
|
|
inThisBuild(
|
|
|
|
List(
|
2018-01-03 09:12:43 +05:30
|
|
|
organization := "com.example",
|
2022-02-02 01:36:43 +01:00
|
|
|
scalaVersion := "3.1.1",
|
2022-04-06 20:29:04 +05:30
|
|
|
version := "0.2.1-snapshot",
|
2021-02-25 23:49:39 +05:30
|
|
|
semanticdbEnabled := true,
|
2022-01-11 19:35:58 +01:00
|
|
|
semanticdbVersion := scalafixSemanticdb.revision
|
2022-01-03 17:24:35 +05:30
|
|
|
|
|
|
|
// This is apparently not supported on Scala 3 currently
|
|
|
|
// scalafixScalaBinaryVersion := "3.1"
|
2021-02-25 23:49:39 +05:30
|
|
|
)
|
|
|
|
),
|
|
|
|
name := "LibreCaptcha",
|
2022-02-27 00:19:16 +01:00
|
|
|
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
|
|
|
)
|
2018-06-06 12:18:40 +05:30
|
|
|
|
2021-04-12 19:55:27 +05:30
|
|
|
Compile / unmanagedResourceDirectories += { baseDirectory.value / "lib" }
|
2021-02-25 23:49:39 +05:30
|
|
|
scalacOptions ++= List(
|
2022-01-11 19:35:58 +01:00
|
|
|
"-deprecation"
|
2021-02-25 23:49:39 +05:30
|
|
|
)
|
2018-12-17 13:34:24 +05:30
|
|
|
javacOptions += "-g:none"
|
|
|
|
compileOrder := CompileOrder.JavaThenScala
|
2021-04-21 14:27:19 +05:30
|
|
|
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"
|
2018-12-17 13:34:24 +05:30
|
|
|
|
2021-12-27 20:19:20 +05:30
|
|
|
ThisBuild / assemblyMergeStrategy := {
|
2022-01-02 05:26:42 +01:00
|
|
|
case PathList("module-info.class") => MergeStrategy.discard
|
2021-12-27 20:01:12 +05:30
|
|
|
case x if x.endsWith("/module-info.class") => MergeStrategy.discard
|
|
|
|
case x =>
|
2021-12-27 20:19:20 +05:30
|
|
|
val oldStrategy = (ThisBuild / assemblyMergeStrategy).value
|
2021-12-27 20:01:12 +05:30
|
|
|
oldStrategy(x)
|
|
|
|
}
|
|
|
|
|
2021-04-12 19:55:27 +05:30
|
|
|
run / fork := true
|