Skip to content

Commit

Permalink
GenIdea: Infer more values for Scala language-level (#2111)
Browse files Browse the repository at this point in the history
Pull request: #2111
  • Loading branch information
lefou authored Nov 9, 2022
2 parents 72ea155 + 6c522e8 commit 2679031
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scalalib/src/GenIdeaImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ case class GenIdeaImpl(
val compilerCp: Agg[Path] = librariesProperties.getOrElse(resolved.path, Agg.empty)
val languageLevel = name match {
case _ if compilerCp.iterator.isEmpty => None
case _ if name.startsWith("scala3-library_3-3.3.") => Some("Scala_3_3")
case _ if name.startsWith("scala3-library_3-3.2.") => Some("Scala_3_2")
case _ if name.startsWith("scala3-library_3-3.1.") => Some("Scala_3_1")
case _ if name.startsWith("scala3-library_3-3.0.") => Some("Scala_3_0")
case _ if name.startsWith("scala-library-2.13.") => Some("Scala_2_13")
Expand Down

0 comments on commit 2679031

Please sign in to comment.