@@ -35,7 +35,7 @@ case class ArtifactForUpdate(
3535 def currentVersion : Version = headDependency.version
3636}
3737
38- trait ArtifactUpdateVersions {
38+ trait ArtifactUpdateVersions [ V ] {
3939 val artifactForUpdate : ArtifactForUpdate
4040
4141 val refersToUpdateVersions : Nel [Version ]
@@ -51,14 +51,16 @@ trait ArtifactUpdateVersions {
5151case class ArtifactUpdateCandidates (
5252 artifactForUpdate : ArtifactForUpdate ,
5353 newerVersionsWithFirstSeen : Nel [VersionWithFirstSeen ]
54- ) extends ArtifactUpdateVersions {
55- override val refersToUpdateVersions : Nel [Version ] = newerVersionsWithFirstSeen.map(_.version)
54+ ) extends ArtifactUpdateVersions [VersionWithFirstSeen ] {
55+ val newerVersions : Nel [Version ] = newerVersionsWithFirstSeen.map(_.version)
56+
57+ override val refersToUpdateVersions : Nel [Version ] = newerVersions
5658
5759 def asSpecificUpdate (nextVersion : Version ): Update .ForArtifactId =
5860 Update .ForArtifactId (artifactForUpdate, nextVersion)
5961
6062 override def show : String =
61- s " ${artifactForUpdate.groupId}: ${artifactForUpdate.crossDependency.showArtifactNames} : ${Version .show((artifactForUpdate.currentVersion +: refersToUpdateVersions .toList)* )}"
63+ s " ${artifactForUpdate.groupId}: ${artifactForUpdate.crossDependency.showArtifactNames} : ${Version .show((artifactForUpdate.currentVersion +: newerVersionsWithFirstSeen.map(_.version) .toList)* )}"
6264}
6365
6466sealed trait Update {
@@ -125,7 +127,7 @@ object Update {
125127 artifactForUpdate : ArtifactForUpdate ,
126128 nextVersion : Version
127129 ) extends Single
128- with ArtifactUpdateVersions {
130+ with ArtifactUpdateVersions [ Version ] {
129131 val crossDependency : CrossDependency = artifactForUpdate.crossDependency
130132
131133 override val refersToUpdateVersions : Nel [Version ] = Nel .one(nextVersion)
0 commit comments