Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-15525

Clean sbt build fails to resolve sbt-antlr4 plugin

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Build
    • Labels:
      None

      Description

      sbt-antlr4 plugin repo page is no longer available, and has been moved to bintray (refer here).

      This causes building from scratch using sbt to fail to resolve, e.g.

      [info] Resolving com.simplytyped#sbt-antlr4;0.7.10 ...
      [warn]  module not found: com.simplytyped#sbt-antlr4;0.7.10
      [warn] ==== typesafe-ivy-releases: tried
      [warn]   https://repo.typesafe.com/typesafe/ivy-releases/com.simplytyped/sbt-antlr4/scala_2.10/sbt_0.13/0.7.10/ivys/ivy.xml
      [warn] ==== sbt-plugin-releases: tried
      [warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.simplytyped/sbt-antlr4/scala_2.10/sbt_0.13/0.7.10/ivys/ivy.xml
      [warn] ==== local: tried
      [warn]   /home/npentreath/.ivy2/local/com.simplytyped/sbt-antlr4/scala_2.10/sbt_0.13/0.7.10/ivys/ivy.xml
      [warn] ==== public: tried
      [warn]   https://repo1.maven.org/maven2/com/simplytyped/sbt-antlr4_2.10_0.13/0.7.10/sbt-antlr4-0.7.10.pom
      [warn] ==== simplytyped: tried
      [warn]   http://simplytyped.github.io/repo/releases/com/simplytyped/sbt-antlr4_2.10_0.13/0.7.10/sbt-antlr4-0.7.10.pom
      [info] Resolving org.fusesource.jansi#jansi;1.4 ...
      [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
      [warn]  ::          UNRESOLVED DEPENDENCIES         ::
      [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
      [warn]  :: com.simplytyped#sbt-antlr4;0.7.10: not found
      [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
      [warn]
      [warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
      [warn]          com.simplytyped:sbt-antlr4:0.7.10 (scalaVersion=2.10, sbtVersion=0.13)
      [warn]
      [warn]  Note: Unresolved dependencies path:
      [warn]          com.simplytyped:sbt-antlr4:0.7.10 (scalaVersion=2.10, sbtVersion=0.13) (/home/npentreath/spark/project/plugins.sbt#L26-27)
      [warn]            +- plugins:plugins:0.1-SNAPSHOT (scalaVersion=2.10, sbtVersion=0.13)
      sbt.ResolveException: unresolved dependency: com.simplytyped#sbt-antlr4;0.7.10: not found
      

      Unfortunately, it also appears the older artefacts have been removed from the github.io repo (refer here, but not added to bintray, so changing the resolver doesn't help:

      info] Resolving com.simplytyped#sbt-antlr4;0.7.10 ...
      [warn]  module not found: com.simplytyped#sbt-antlr4;0.7.10
      [warn] ==== typesafe-ivy-releases: tried
      [warn]   https://repo.typesafe.com/typesafe/ivy-releases/com.simplytyped/sbt-antlr4/scala_2.10/sbt_0.13/0.7.10/ivys/ivy.xml
      [warn] ==== sbt-plugin-releases: tried
      [warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.simplytyped/sbt-antlr4/scala_2.10/sbt_0.13/0.7.10/ivys/ivy.xml
      [warn] ==== local: tried
      [warn]   /home/npentreath/.ivy2/local/com.simplytyped/sbt-antlr4/scala_2.10/sbt_0.13/0.7.10/ivys/ivy.xml
      [warn] ==== public: tried
      [warn]   https://repo1.maven.org/maven2/com/simplytyped/sbt-antlr4_2.10_0.13/0.7.10/sbt-antlr4-0.7.10.pom
      [warn] ==== bintray-simplytyped: tried
      [warn]   http://dl.bintray.com/simplytyped/sbt-plugins/com.simplytyped/sbt-antlr4/scala_2.10/sbt_0.13/0.7.10/ivys/ivy.xml
      [info] Resolving org.fusesource.jansi#jansi;1.4 ...
      [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
      [warn]  ::          UNRESOLVED DEPENDENCIES         ::
      [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
      [warn]  :: com.simplytyped#sbt-antlr4;0.7.10: not found
      [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
      [warn]
      [warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
      [warn]          com.simplytyped:sbt-antlr4:0.7.10 (scalaVersion=2.10, sbtVersion=0.13)
      [warn]
      [warn]  Note: Unresolved dependencies path:
      [warn]          com.simplytyped:sbt-antlr4:0.7.10 (scalaVersion=2.10, sbtVersion=0.13) (/home/npentreath/spark/project/plugins.sbt#L26-27)
      [warn]            +- plugins:plugins:0.1-SNAPSHOT (scalaVersion=2.10, sbtVersion=0.13)
      sbt.ResolveException: unresolved dependency: com.simplytyped#sbt-antlr4;0.7.10: not found
      

      I've commented on the relevant commit to ask the author to publish the older artefacts to bintray, in which case we can update the resolver in plugins.sbt.

        Attachments

          Activity

            People

            • Assignee:
              hvanhovell Herman van Hovell
              Reporter:
              mlnick Nick Pentreath
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: