Skip to content

Commit 27dcf69

Browse files
committed
Support for 2023.3 Beta 2
1 parent 47f1733 commit 27dcf69

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

build.sbt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import org.jetbrains.sbtidea.{AutoJbr, JbrPlatform}
22

33
lazy val scala213 = "2.13.10"
4-
lazy val scalaPluginVersion = "2023.3.3"
5-
lazy val pluginVersion = "2023.3.27" + sys.env.get("ZIO_INTELLIJ_BUILD_NUMBER").fold(".0")(v => s".$v")
4+
lazy val scalaPluginVersion = "2023.3.13"
5+
lazy val pluginVersion = "2023.3.28" + sys.env.get("ZIO_INTELLIJ_BUILD_NUMBER").fold(".0")(v => s".$v")
66

77
ThisBuild / intellijPluginName := "zio-intellij"
8-
ThisBuild / intellijBuild := "233"
8+
ThisBuild / intellijBuild := "233.11799.30"
99
ThisBuild / jbrInfo := AutoJbr(explicitPlatform = Some(JbrPlatform.osx_aarch64))
1010

1111
Global / intellijAttachSources := true

src/main/resources/META-INF/plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<change-notes>replaced-by-build</change-notes>
2121

22-
<idea-version since-build="233" until-build="233.*"/>
22+
<idea-version since-build="233.11799" until-build="233.*"/>
2323

2424
<depends>org.intellij.scala</depends>
2525
<depends>com.intellij.modules.java</depends>

src/main/scala/zio/intellij/project/ZioProjectBuilder.scala

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package zio.intellij.project
33
import com.intellij.ide.util.projectWizard.{ModuleWizardStep, SettingsStep}
44
import com.intellij.openapi.module.{ModifiableModuleModel, Module}
55
import com.intellij.openapi.options.ConfigurationException
6+
import com.intellij.openapi.progress.EmptyProgressIndicator
67
import com.intellij.openapi.projectRoots.{JavaSdk, JavaSdkVersion, Sdk}
78
import com.intellij.openapi.util.io
89
import com.intellij.openapi.util.text.Strings
@@ -15,7 +16,7 @@ import org.jetbrains.plugins.scala.extensions._
1516
import org.jetbrains.plugins.scala.project.template.ScalaVersionDownloadingDialog
1617
import org.jetbrains.plugins.scala.project.{ScalaLanguageLevel, Version, Versions}
1718
import org.jetbrains.plugins.scala.util.HttpDownloadUtil
18-
import org.jetbrains.plugins.scala.{extensions, ScalaBundle, ScalaVersion}
19+
import org.jetbrains.plugins.scala.{ScalaBundle, ScalaVersion, extensions}
1920
import org.jetbrains.sbt.project.template.{SComboBox, SbtModuleBuilderBase, ScalaSettingsStepBase}
2021
import org.jetbrains.sbt.{Sbt, SbtBundle}
2122
import zio.intellij.ZioIcon
@@ -46,8 +47,9 @@ private[zio] class ZioProjectBuilder extends SbtModuleBuilderBase {
4647

4748
val hardcodedZioVersions = Versions(ZIO.`latest-ish`.toString, List("1.0.11", "1.0.10", "1.0.9"))
4849

49-
private lazy val scalaVersions = ScalaKind.loadVersionsWithProgress()
50-
private lazy val sbtVersions = SbtKind.loadVersionsWithProgress()
50+
private lazy val indicator = new EmptyProgressIndicator
51+
private lazy val scalaVersions = ScalaKind.loadVersionsWithProgress(indicator)
52+
private lazy val sbtVersions = SbtKind.loadVersionsWithProgress(indicator)
5153
private lazy val zioVersions = (for {
5254
versionStr <- selections.scalaVersion
5355
version <- ScalaVersion.fromString(versionStr)

src/test/scala/intellij/testfixtures/IvyManagedLoader.scala

+9-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,16 @@ object IvyManagedLoader {
4545
] = mutable.Map()
4646

4747
def apply(dependencies: DependencyDescription*): IvyManagedLoader =
48-
new IvyManagedLoader(new TestDependencyManager, dependencies: _*)
48+
new IvyManagedLoader(TestDependencyManager, dependencies: _*)
4949

5050
def apply(dependencyManager: DependencyManagerBase, dependencies: DependencyDescription*): IvyManagedLoader =
5151
new IvyManagedLoader(dependencyManager, dependencies: _*)
5252
}
53+
54+
object TestDependencyManager extends DependencyManagerBase {
55+
56+
// from Michael M.: this blacklist is in order that tested libraries do not transitively fetch `scala-library`,
57+
// which is loaded in a special way in tests via org.jetbrains.plugins.scala.base.libraryLoaders.ScalaSDKLoader
58+
//TODO: should we add scala3-* here?
59+
override val artifactBlackList: Set[String] = Set("scala-library", "scala-reflect", "scala-compiler")
60+
}

0 commit comments

Comments
 (0)