Skip to content

Commit

Permalink
Fix scalacenter#1405 - default artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed May 27, 2024
1 parent a440c15 commit 338253e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ final case class ProjectHeader(
def getDefaultArtifact(language: Option[Language], platform: Option[Platform]): Artifact = {
val artifacts = latestArtifacts
.filter(artifact => language.forall(_ == artifact.language) && platform.forall(_ == artifact.platform))
val stableArtifacts = latestArtifacts.filter(_.version.isStable)
val stableArtifacts = artifacts.filter(_.version.isStable)

def byName(artifacts: Seq[Artifact]): Option[Artifact] =
defaultArtifactName.toSeq
Expand Down

0 comments on commit 338253e

Please sign in to comment.