Skip to content

Commit

Permalink
Development (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbmacher authored Dec 27, 2024
1 parent 784177a commit 929fa84
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lazy val commonSettings = Seq(
"--add-opens", "java.desktop/javax.swing.text=ALL-UNNAMED",
"--add-opens", "java.desktop/sun.font=ALL-UNNAMED",
"--add-exports", "java.base/jdk.internal.vm=ALL-UNNAMED",
"--add-opens", "java.base/java.nio=ALL-UNNAMED",
),
version := "2024.3.1.1",
scalaVersion := "2.13.15",
Expand All @@ -37,6 +38,32 @@ lazy val `cucumber-scala` = project
"org.intellij.scala:2024.3.23".toPlugin,
"gherkin:243.22562.13".toPlugin
),
intellijVMOptions := intellijVMOptions.value.copy(
defaultOptions = Seq(
"--add-opens", "java.desktop/javax.swing.plaf.basic=ALL-UNNAMED",
"--add-opens", "java.desktop/com.apple.laf=ALL-UNNAMED",
"--add-opens", "java.desktop/com.sun.java.swing.platf.gtk=ALL-UNNAMED",
"--add-opens", "java.desktop/sun.awt=ALL-UNNAMED",
"--add-opens", "java.desktop/sun.awt.windows=ALL-UNNAMED",
"--add-opens", "java.desktop/sun.awt.X11=ALL-UNNAMED",
"--add-opens", "java.desktop/java.awt=ALL-UNNAMED",
"--add-opens", "java.desktop/java.awt.event=ALL-UNNAMED",
"--add-opens", "java.desktop/javax.swing=ALL-UNNAMED",
"--add-opens", "java.desktop/javax.swing.text=ALL-UNNAMED",
"--add-opens", "java.desktop/javax.swing.text.html=ALL-UNNAMED",
"--add-opens", "java.desktop/sun.font=ALL-UNNAMED",
"--add-exports", "java.base/jdk.internal.vm=ALL-UNNAMED",
"--add-exports", "java.desktop/sun.swing=ALL-UNNAMED",
"--add-exports", "java.desktop/sun.awt.image=ALL-UNNAMED",
"--add-exports", "java.desktop/com.apple.eawt.event=ALL-UNNAMED",
"--add-exports", "java.desktop/com.apple.eawt=ALL-UNNAMED",
"--add-exports", "java.desktop/java.awt.peer=ALL-UNNAMED",
"--add-exports", "java.base/sun.nio.fs=ALL-UNNAMED",
"--add-exports", "java.management/sun.management=ALL-UNNAMED",
"--add-opens", "java.base/java.lang=ALL-UNNAMED",
"--add-opens", "java.base/java.util=ALL-UNNAMED",
)
),
packageMethod := PackagingMethod.Standalone(),
patchPluginXml := pluginXmlOptions { xml =>
xml.version = version.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class StepDefUsagesSpec extends ScCucumberSpecBase {
@Test
def testFindUsages(): Unit = {
loadTestCase("usages/StepDefinitions.scala", "usages/testcase1.feature", "usages/testcase2.feature")
val usages = myFixture.testFindUsages(getTestDataPath + "/usages/StepDefinitions.scala") //testFindUsagesUsingAction
val usages = myFixture.testFindUsagesUsingAction(getTestDataPath + "/usages/StepDefinitions.scala") //testFindUsages
assert(usages.size() == 2)
}
}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.10.1
sbt.version=1.10.7
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.26.2")
addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.26.1")

0 comments on commit 929fa84

Please sign in to comment.