7f3c6ff4ff
## What changes were proposed in this pull request? 1.0.0 fixes an issue with import order, explicit type for public methods, line length limitation and comment validation: ``` [error] .../spark/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala:50:16: Are you sure you want to println? If yes, wrap the code block with [error] // scalastyle:off println [error] println(...) [error] // scalastyle:on println [error] .../spark/repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala:49: File line length exceeds 100 characters [error] .../spark/repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala:22:21: Are you sure you want to println? If yes, wrap the code block with [error] // scalastyle:off println [error] println(...) [error] // scalastyle:on println [error] .../spark/streaming/src/test/java/org/apache/spark/streaming/JavaTestUtils.scala:35:6: Public method must have explicit type [error] .../spark/streaming/src/test/java/org/apache/spark/streaming/JavaTestUtils.scala:51:6: Public method must have explicit type [error] .../spark/streaming/src/test/java/org/apache/spark/streaming/JavaTestUtils.scala:93:15: Public method must have explicit type [error] .../spark/streaming/src/test/java/org/apache/spark/streaming/JavaTestUtils.scala:98:15: Public method must have explicit type [error] .../spark/streaming/src/test/java/org/apache/spark/streaming/JavaTestUtils.scala:47:2: Insert a space after the start of the comment [error] .../spark/streaming/src/test/java/org/apache/spark/streaming/JavaTestUtils.scala:26:43: JavaDStream should come before JavaDStreamLike. ``` This PR also fixes the workaround added in SPARK-16877 for `org.scalastyle.scalariform.OverrideJavaChecker` feature, added from 0.9.0. ## How was this patch tested? Manually tested. Author: hyukjinkwon <gurwls223@gmail.com> Closes #19116 from HyukjinKwon/scalastyle-1.0.0.
41 lines
1.9 KiB
Scala
41 lines
1.9 KiB
Scala
// need to make changes to uptake sbt 1.0 support in "com.eed3si9n" % "sbt-assembly" % "1.14.5"
|
|
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
|
|
|
|
// sbt 1.0.0 support: https://github.com/typesafehub/sbteclipse/issues/343
|
|
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0")
|
|
|
|
// sbt 1.0.0 support: https://github.com/jrudolph/sbt-dependency-graph/issues/134
|
|
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2")
|
|
|
|
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
|
|
|
|
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.17")
|
|
|
|
// sbt 1.0.0 support: https://github.com/AlpineNow/junit_xml_listener/issues/6
|
|
addSbtPlugin("com.alpinenow" % "junit_xml_listener" % "0.5.1")
|
|
|
|
// need to make changes to uptake sbt 1.0 support in "com.eed3si9n" % "sbt-unidoc" % "0.4.1"
|
|
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.3")
|
|
|
|
// need to make changes to uptake sbt 1.0 support in "com.cavorite" % "sbt-avro-1-7" % "1.1.2"
|
|
addSbtPlugin("com.cavorite" % "sbt-avro" % "0.3.2")
|
|
|
|
// sbt 1.0.0 support: https://github.com/spray/sbt-revolver/issues/62
|
|
addSbtPlugin("io.spray" % "sbt-revolver" % "0.8.0")
|
|
|
|
libraryDependencies += "org.ow2.asm" % "asm" % "5.1"
|
|
|
|
libraryDependencies += "org.ow2.asm" % "asm-commons" % "5.1"
|
|
|
|
// sbt 1.0.0 support: https://github.com/ihji/sbt-antlr4/issues/14
|
|
addSbtPlugin("com.simplytyped" % "sbt-antlr4" % "0.7.11")
|
|
|
|
// Spark uses a custom fork of the sbt-pom-reader plugin which contains a patch to fix issues
|
|
// related to test-jar dependencies (https://github.com/sbt/sbt-pom-reader/pull/14). The source for
|
|
// this fork is published at https://github.com/JoshRosen/sbt-pom-reader/tree/v1.0.0-spark
|
|
// and corresponds to commit b160317fcb0b9d1009635a7c5aa05d0f3be61936 in that repository.
|
|
// In the long run, we should try to merge our patch upstream and switch to an upstream version of
|
|
// the plugin; this is tracked at SPARK-14401.
|
|
|
|
addSbtPlugin("org.spark-project" % "sbt-pom-reader" % "1.0.0-spark")
|