sbt / sbt-xjc

SBT plugin to compile an XML Schema with XJC
Other
15 stars 14 forks source link

jar calculation incorrect for custom ivy #17

Closed fommil closed 6 years ago

fommil commented 9 years ago

https://github.com/sbt/sbt-xjc/blob/master/src/main/scala/com/github/retronym/sbtxjc/SbtXjcPlugin.scala#L44

    libraryDependencies <++= (xjcLibs)(_.map(_ % XjcTool.name)),
    libraryDependencies <++= (xjcPlugins)(_.map(_ % XjcPlugin.name))

assumes that the artefacts are packaged the same way as they are in maven central (they are not at my work). I recommend adding the selector part to the definition of the xjcLibs and xjcPlugins directly.

BTW, I rewrote the jar calculation as so in my local copy to help me debug things:

      def jars(config: Configuration): Seq[File] = {
        updateReport.select(
          configuration = configurationFilter(config.name.toLowerCase),
          artifact = artifactFilter(extension = Artifact.DefaultExtension)
        )
      }