diff --git a/.jvmopts b/.jvmopts deleted file mode 100644 index a15bfa0..0000000 --- a/.jvmopts +++ /dev/null @@ -1,6 +0,0 @@ ---add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED ---add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED ---add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED ---add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED ---add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED ---add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED diff --git a/build.sbt b/build.sbt index 74f4926..7b33bfb 100644 --- a/build.sbt +++ b/build.sbt @@ -35,6 +35,7 @@ lazy val supportedScalaVersions = List(scala212, scala213, scala3) def javaLibSettings(release: Int) = Seq( crossPaths := false, autoScalaLibrary := false, + ThisBuild / javafmtFormatterCompatibleJavaVersion := 17, Compile / compile / javacOptions ++= Seq("-Xlint:all,-options", "-Werror", "--release", release.toString), Compile / doc / javacOptions ++= Seq("-Xdoclint:all,-missing", "--release", release.toString, "-html5") ) diff --git a/project/plugins.sbt b/project/plugins.sbt index a14365b..808eddc 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,6 +1,6 @@ addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2") addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0") -addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % "0.11.0") +addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % "0.12.0") addSbtPlugin("com.github.sbt" % "sbt-header" % "5.11.0") addSbtPlugin("com.github.sbt.junit" % "sbt-jupiter-interface" % "0.18.0") addSbtPlugin("org.jetbrains.scala" % "sbt-kotlin-plugin" % "4.0.0-M1")