From 1ccc57acc992f24b80a79f7e065020a06b4c982f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Solarski?= Date: Wed, 28 Aug 2024 12:23:34 +0200 Subject: [PATCH] fixup to javadoc error: compiler message file broken: key=javadoc.err.msg arguments=javadoc, invalid flag: -Xlint:deprecation for module with java only sources (flinkMetricsDeferredReporter) --- build.sbt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 60229487adf..ca61525287b 100644 --- a/build.sbt +++ b/build.sbt @@ -164,8 +164,8 @@ lazy val commonSettings = publishSettings ++ Seq( licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")), - crossScalaVersions := supportedScalaVersions, - scalaVersion := defaultScalaV, + crossScalaVersions := supportedScalaVersions, + scalaVersion := defaultScalaV, resolvers ++= Seq( "confluent" at "https://packages.confluent.io/maven", ), @@ -182,7 +182,7 @@ lazy val commonSettings = case (2, 12) => Seq(compilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)) case _ => Seq() }, - scalacOptions := Seq( + scalacOptions := Seq( "-unchecked", "-deprecation", "-encoding", @@ -207,7 +207,7 @@ lazy val commonSettings = "-Ymacro-annotations" ) }, - javacOptions := Seq( + Compile / compile / javacOptions := Seq( "-Xlint:deprecation", "-Xlint:unchecked", // Using --release flag (available only on jdk >= 9) instead of -source -target to avoid usage of api from newer java version