From 5f77eee1ac1cb02eb655f2e9805ae24a39e50b82 Mon Sep 17 00:00:00 2001 From: hrj Date: Thu, 9 Dec 2021 23:25:03 +0530 Subject: [PATCH] Allow scala 3 syntax --- .scalafmt.conf | 5 +++-- build.sbt | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index 1b11bbb..88c98ad 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,2 +1,3 @@ -version=2.5.2 -maxColumn = 120 \ No newline at end of file +version="3.0.5" +maxColumn = 120 +runner.dialect = scala213source3 diff --git a/build.sbt b/build.sbt index 3d62d0f..350eaaa 100644 --- a/build.sbt +++ b/build.sbt @@ -19,7 +19,8 @@ Compile / unmanagedResourceDirectories += { baseDirectory.value / "lib" } scalacOptions ++= List( "-Yrangepos", "-Ywarn-unused", - "-deprecation" + "-deprecation", + "-Xsource:3" ) javacOptions += "-g:none" compileOrder := CompileOrder.JavaThenScala