Skip to content

Commit

Permalink
Fix implementation of new compiler plugin check
Browse files Browse the repository at this point in the history
- Multiple paths are split by a `,`
- Even if compatibility mode is not used, we still have to check for the
  version of the plugins because there can also be binary
  incompatibilities.
  • Loading branch information
kiritsuku committed Apr 29, 2015
1 parent 6daea8e commit 56bb982
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -501,9 +501,9 @@ trait ClasspathManagement extends HasLogger { self: ScalaProject =>
* Unlike regular dependencies, compiler plugins must be cross-compiled with the exact compiler
* version used for building.
*/
private def validateCompilerPlugins(): Seq[ClasspathErrorMarker] = if (!isUsingCompatibilityMode()) Seq() else {
private def validateCompilerPlugins(): Seq[ClasspathErrorMarker] = {
def paths(p: String) =
p.split(File.pathSeparator).toSeq.filterNot(_.isEmpty).distinct
p.split(",").toSeq.filterNot(_.isEmpty).distinct

def scanDir(d: String) = {
val entries = Option(new File(d).listFiles).getOrElse(Array.empty[File])
Expand Down

0 comments on commit 56bb982

Please sign in to comment.