diff options
author | Erik LaBianca <erik.labianca@gmail.com> | 2017-12-21 09:38:21 -0600 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2017-12-21 09:38:21 -0600 |
commit | 0abaf31be7ab9e030ea9433938b9123596954814 (patch) | |
tree | 34e7d7b4c8ee9d02c4710b68bfacabda4f25c902 /project | |
parent | 59d52631eb86394f1d981419cb744c20bd4e0b87 (diff) |
[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 <erik.labianca@gmail.com>
Closes #20040 from easel/javadoc-xlint.
Diffstat (limited to 'project')
-rw-r--r-- | project/SparkBuild.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala index 75703380cd..83054945af 100644 --- a/project/SparkBuild.scala +++ b/project/SparkBuild.scala @@ -239,14 +239,14 @@ object SparkBuild extends PomBuild { javacOptions in Compile ++= Seq( "-encoding", "UTF-8", - "-source", javacJVMVersion.value, - "-Xlint:unchecked" + "-source", javacJVMVersion.value ), - // This -target option cannot be set in the Compile configuration scope since `javadoc` doesn't - // play nicely with it; see https://github.com/sbt/sbt/issues/355#issuecomment-3817629 for - // additional discussion and explanation. + // This -target and Xlint:unchecked options cannot be set in the Compile configuration scope since + // `javadoc` doesn't play nicely with them; see https://github.com/sbt/sbt/issues/355#issuecomment-3817629 + // for additional discussion and explanation. javacOptions in (Compile, compile) ++= Seq( - "-target", javacJVMVersion.value + "-target", javacJVMVersion.value, + "-Xlint:unchecked" ), scalacOptions in Compile ++= Seq( |