Skip to content

Commit 0abaf31

Browse files
easelsrowen
authored andcommitted
[SPARK-22852][BUILD] Exclude -Xlint:unchecked from sbt javadoc flags
## What changes were proposed in this pull request? Moves the -Xlint:unchecked flag in the sbt build configuration from Compile to (Compile, compile) scope, allowing publish and publishLocal commands to work. ## How was this patch tested? Successfully published the spark-launcher subproject from within sbt successfully, where it fails without this patch. Author: Erik LaBianca <[email protected]> Closes #20040 from easel/javadoc-xlint.
1 parent 59d5263 commit 0abaf31

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

project/SparkBuild.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,14 @@ object SparkBuild extends PomBuild {
239239

240240
javacOptions in Compile ++= Seq(
241241
"-encoding", "UTF-8",
242-
"-source", javacJVMVersion.value,
243-
"-Xlint:unchecked"
242+
"-source", javacJVMVersion.value
244243
),
245-
// This -target option cannot be set in the Compile configuration scope since `javadoc` doesn't
246-
// play nicely with it; see https://github.com/sbt/sbt/issues/355#issuecomment-3817629 for
247-
// additional discussion and explanation.
244+
// This -target and Xlint:unchecked options cannot be set in the Compile configuration scope since
245+
// `javadoc` doesn't play nicely with them; see https://github.com/sbt/sbt/issues/355#issuecomment-3817629
246+
// for additional discussion and explanation.
248247
javacOptions in (Compile, compile) ++= Seq(
249-
"-target", javacJVMVersion.value
248+
"-target", javacJVMVersion.value,
249+
"-Xlint:unchecked"
250250
),
251251

252252
scalacOptions in Compile ++= Seq(

0 commit comments

Comments
 (0)