Skip to content

Commit 929fa84

Browse files
authored
Development (#147)
* README: JDK 21 https://plugins.jetbrains.com/docs/intellij/setting-up-theme-environment.html#add-jdk-and-intellij-platform-plugin-sdk * sbt 1.10.7, fix runIDE + get rid of experimental api
1 parent 784177a commit 929fa84

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

build.sbt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ lazy val commonSettings = Seq(
1212
"--add-opens", "java.desktop/javax.swing.text=ALL-UNNAMED",
1313
"--add-opens", "java.desktop/sun.font=ALL-UNNAMED",
1414
"--add-exports", "java.base/jdk.internal.vm=ALL-UNNAMED",
15+
"--add-opens", "java.base/java.nio=ALL-UNNAMED",
1516
),
1617
version := "2024.3.1.1",
1718
scalaVersion := "2.13.15",
@@ -37,6 +38,32 @@ lazy val `cucumber-scala` = project
3738
"org.intellij.scala:2024.3.23".toPlugin,
3839
"gherkin:243.22562.13".toPlugin
3940
),
41+
intellijVMOptions := intellijVMOptions.value.copy(
42+
defaultOptions = Seq(
43+
"--add-opens", "java.desktop/javax.swing.plaf.basic=ALL-UNNAMED",
44+
"--add-opens", "java.desktop/com.apple.laf=ALL-UNNAMED",
45+
"--add-opens", "java.desktop/com.sun.java.swing.platf.gtk=ALL-UNNAMED",
46+
"--add-opens", "java.desktop/sun.awt=ALL-UNNAMED",
47+
"--add-opens", "java.desktop/sun.awt.windows=ALL-UNNAMED",
48+
"--add-opens", "java.desktop/sun.awt.X11=ALL-UNNAMED",
49+
"--add-opens", "java.desktop/java.awt=ALL-UNNAMED",
50+
"--add-opens", "java.desktop/java.awt.event=ALL-UNNAMED",
51+
"--add-opens", "java.desktop/javax.swing=ALL-UNNAMED",
52+
"--add-opens", "java.desktop/javax.swing.text=ALL-UNNAMED",
53+
"--add-opens", "java.desktop/javax.swing.text.html=ALL-UNNAMED",
54+
"--add-opens", "java.desktop/sun.font=ALL-UNNAMED",
55+
"--add-exports", "java.base/jdk.internal.vm=ALL-UNNAMED",
56+
"--add-exports", "java.desktop/sun.swing=ALL-UNNAMED",
57+
"--add-exports", "java.desktop/sun.awt.image=ALL-UNNAMED",
58+
"--add-exports", "java.desktop/com.apple.eawt.event=ALL-UNNAMED",
59+
"--add-exports", "java.desktop/com.apple.eawt=ALL-UNNAMED",
60+
"--add-exports", "java.desktop/java.awt.peer=ALL-UNNAMED",
61+
"--add-exports", "java.base/sun.nio.fs=ALL-UNNAMED",
62+
"--add-exports", "java.management/sun.management=ALL-UNNAMED",
63+
"--add-opens", "java.base/java.lang=ALL-UNNAMED",
64+
"--add-opens", "java.base/java.util=ALL-UNNAMED",
65+
)
66+
),
4067
packageMethod := PackagingMethod.Standalone(),
4168
patchPluginXml := pluginXmlOptions { xml =>
4269
xml.version = version.value

cucumber-scala/src/test/scala/com/github/vbmacher/intellij/cucumber/scala/usages/StepDefUsagesSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class StepDefUsagesSpec extends ScCucumberSpecBase {
1111
@Test
1212
def testFindUsages(): Unit = {
1313
loadTestCase("usages/StepDefinitions.scala", "usages/testcase1.feature", "usages/testcase2.feature")
14-
val usages = myFixture.testFindUsages(getTestDataPath + "/usages/StepDefinitions.scala") //testFindUsagesUsingAction
14+
val usages = myFixture.testFindUsagesUsingAction(getTestDataPath + "/usages/StepDefinitions.scala") //testFindUsages
1515
assert(usages.size() == 2)
1616
}
1717
}

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.10.1
1+
sbt.version=1.10.7

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.26.2")
1+
addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.26.1")

0 commit comments

Comments
 (0)