update to scala 3
Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
parent
fe0766320b
commit
3e99c0d38b
|
@ -1,3 +1,3 @@
|
|||
version="3.3.1"
|
||||
maxColumn = 120
|
||||
runner.dialect = scala213source3
|
||||
runner.dialect = scala3
|
||||
|
|
|
@ -2,25 +2,22 @@ lazy val root = (project in file(".")).settings(
|
|||
inThisBuild(
|
||||
List(
|
||||
organization := "com.example",
|
||||
scalaVersion := "2.13.7",
|
||||
scalaVersion := "3.1.0",
|
||||
version := "0.1.0-SNAPSHOT",
|
||||
semanticdbEnabled := true,
|
||||
semanticdbVersion := scalafixSemanticdb.revision,
|
||||
scalafixScalaBinaryVersion := "2.13"
|
||||
scalafixScalaBinaryVersion := "3.1"
|
||||
)
|
||||
),
|
||||
name := "LibreCaptcha",
|
||||
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-core" % "4.0.24",
|
||||
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-filters" % "4.0.24",
|
||||
libraryDependencies += "org.json4s" % "json4s-jackson_2.13" % "4.0.3"
|
||||
libraryDependencies += "org.json4s" %% "json4s-jackson" % "4.0.3"
|
||||
)
|
||||
|
||||
Compile / unmanagedResourceDirectories += { baseDirectory.value / "lib" }
|
||||
scalacOptions ++= List(
|
||||
"-Yrangepos",
|
||||
"-Ywarn-unused",
|
||||
"-deprecation",
|
||||
"-Xsource:3"
|
||||
)
|
||||
javacOptions += "-g:none"
|
||||
compileOrder := CompileOrder.JavaThenScala
|
||||
|
|
|
@ -4,6 +4,9 @@ import scala.io.Source.fromFile
|
|||
import org.json4s.{DefaultFormats, JValue, JObject, JField, JString}
|
||||
import org.json4s.jackson.JsonMethods.{parse, render, pretty}
|
||||
import org.json4s.JsonDSL._
|
||||
import org.json4s.StringInput
|
||||
import org.json4s.jvalue2monadic
|
||||
import org.json4s.jvalue2extractable
|
||||
import java.io.{FileNotFoundException, File, PrintWriter}
|
||||
import java.{util => ju}
|
||||
import lc.misc.HelperFunctions
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package lc.server
|
||||
|
||||
import org.json4s.jackson.JsonMethods.parse
|
||||
import org.json4s.jvalue2extractable
|
||||
import lc.core.Captcha
|
||||
import lc.core.ErrorMessageEnum
|
||||
import lc.core.{Answer, ByteConvert, Error, Id, Parameters}
|
||||
|
|
Loading…
Reference in New Issue