mustache.java icon indicating copy to clipboard operation
mustache.java copied to clipboard

scala packages don't follow naming convention

Open mosaic-matt-bush opened this issue 6 years ago • 2 comments

The standard naming convention for scala libraries is to append the scala version to the artifact ID, after an underscore. The scala-extensions artifact uses a dash to before the version number.

This is a problem for projects that cross-compile against multiple scala versions, since we can't use SBT's built-in means of handling this, the %% operator, which automatically detects the scala version being used:

// sbt syntax for java libraries, fetches an artifact named compiler
"com.github.spullara.mustache.java" % "compiler" % "0.9.6",
// sbt syntax for scala libraries; tries and fails to fetch an artifact named scala-extensions_2.11, scala-extensions_2.12, etc, depending on the scala version
"com.github.spullara.mustache.java" %% "scala-extensions" % "0.9.6"

Can you update your scala artifact names to use an underscore instead of a dash? Maybe you could address #156 at the same time?

mosaic-matt-bush avatar Aug 02 '19 20:08 mosaic-matt-bush

The community has been supporting the Scala stuff. Can you submit a PR?

spullara avatar Aug 02 '19 22:08 spullara

I opened #248 for this.

mosaic-matt-bush avatar Mar 12 '20 19:03 mosaic-matt-bush