Currently, the version tag for dependencies in the TOML file always
encodes the platform name and binary Scala version. Internally,
Seed already has to handle different version tags. Expose this
functionality in scalaDep by introducing a fourth parameter. The
detailed changes for this are:
Build: Introduce VersionTag which was previously called
PlatformSuffix and located in Artefact
Build: Make Dep a sealed trait with two children, JavaDep and
ScalaDep, the only difference between those two being that
ScalaDep has a VersionTag parameter. The version tag defaults
to PlatformBinary in order to retain compatibility.
TomlUtils: Introduce codec for parsing VersionTag values
Artefact: Remove Versioned in favour of Dep
Artefact: Provide function for Dep → Artefact conversions
ArtefactResolution: Refactor functions for collecting
dependencies
Currently, the version tag for dependencies in the TOML file always encodes the platform name and binary Scala version. Internally, Seed already has to handle different version tags. Expose this functionality in
scalaDep
by introducing a fourth parameter. The detailed changes for this are:Build
: IntroduceVersionTag
which was previously calledPlatformSuffix
and located inArtefact
Build
: MakeDep
a sealed trait with two children,JavaDep
andScalaDep
, the only difference between those two being thatScalaDep
has aVersionTag
parameter. The version tag defaults toPlatformBinary
in order to retain compatibility.TomlUtils
: Introduce codec for parsingVersionTag
valuesArtefact
: RemoveVersioned
in favour ofDep
Artefact
: Provide function forDep
→Artefact
conversionsArtefactResolution
: Refactor functions for collecting dependencies