Closed gkossakowski closed 9 years ago
Would it make sense for dbuild to preserve the proper scalaBinaryVersion? In this particular case we would have scalaVersion
set to 2.11.3-dbuildx1882bf53040139d9fd00e0c582bd1dcfd5e44573
but scalaBinaryVersion
would be still 2.11.3
during resolving dependencies. When building (and publishing) keeping full binary version probably makes sense.
In dbuild, the scalaBinaryVersion
is normally set to the same value as scalaVersion
; that helps to resolve dependencies exclusively against the artifacts that have been compiled in the same dbuild run, rather than whatever other dependencies may be available in other repositories. I would argue that this is not something that needs to be fixed in dbuild: projects should be able to cope with arbitrary versions of scala, which may lead to a wider range of possible values for scalaBinaryVersion
, as you did in your fix to twirl. The computation of scalaBinaryVersion
is actually pretty complex, and the previous twirl code would equally fail with some snapshot versions of the scala compiler. You may refer to https://github.com/sbt/sbt/pull/1573 for some additional information.
I am closing this issue, but please feel free to reopen if you would like to add further comments.
Dbuild makes it difficult to run builds that rely on matching
scalaBinaryVersion
:The relevant fragment in twirl build is: