Skip to content

Commit c3fd6cd

Browse files
committed
Improve IDE import
1 parent b6351c9 commit c3fd6cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@ val scala212 = "2.12.13"
55
val scala213 = "2.13.5"
66
val scala3 = "3.0.0-RC3"
77

8+
val scalaIdeaVersion = scala3 // the version for which to import sources into intellij
9+
810
excludeLintKeys in Global ++= Set(ideSkipProject)
911

1012
val commonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq(
1113
organization := "com.softwaremill.quicklens",
1214
updateDocs := UpdateVersionInDocs(sLog.value, organization.value, version.value, List(file("README.md"))),
1315
scalacOptions := Seq("-deprecation", "-feature", "-unchecked"), // useful for debugging macros: "-Ycheck:all"
14-
ideSkipProject := (scalaVersion.value != scala3)
16+
ideSkipProject := (scalaVersion.value != scalaIdeaVersion)
1517
)
1618

1719
lazy val root =
1820
project
1921
.in(file("."))
2022
.settings(commonSettings)
2123
.settings(publishArtifact := false)
24+
.settings(scalaVersion := scalaIdeaVersion)
2225
.aggregate(quicklens.projectRefs: _*)
2326

2427
val versionSpecificScalaSources = {

0 commit comments

Comments
 (0)