Skip to content

Commit

Permalink
compatibility with IJ 2024.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ghik committed Jun 10, 2024
1 parent 5379f77 commit bf50317
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import org.jetbrains.sbtidea.Keys._

ThisBuild / scalaVersion := "2.13.10"
ThisBuild / scalaVersion := "2.13.14"
ThisBuild / intellijPluginName := "intellij-hocon"
ThisBuild / intellijBuild := "241.8102.112"
ThisBuild / intellijBuild := "242.14146.16"
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))

val junitInterfaceVersion = "0.11"
val commonsTextVersion = "1.12.0"

lazy val hocon = project.in(file(".")).enablePlugins(SbtIdeaPlugin).settings(
version := "2024.1.99-SNAPSHOT",
Expand All @@ -22,6 +23,7 @@ lazy val hocon = project.in(file(".")).enablePlugins(SbtIdeaPlugin).settings(
ideBasePackages := Seq("org.jetbrains.plugins.hocon"),
intellijPlugins := Seq("com.intellij.properties", "com.intellij.java", "com.intellij.java-i18n").map(_.toPlugin),
libraryDependencies ++= Seq(
"org.apache.commons" % "commons-text" % commonsTextVersion,
"com.novocode" % "junit-interface" % junitInterfaceVersion % Test,
),
packageLibraryMappings := Seq.empty, // allow scala-library
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.2
sbt.version=1.10.0
2 changes: 1 addition & 1 deletion resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<description>Standalone HOCON plugin for IntelliJ IDEA</description>
<version>2024.1.99-SNAPSHOT</version>
<vendor>Roman Janusz, AVSystem, JetBrains</vendor>
<idea-version since-build="241.0" until-build="250.0"/>
<idea-version since-build="242.0" until-build="250.0"/>
<depends>com.intellij.modules.platform</depends>
<depends>com.intellij.modules.lang</depends>
<depends optional="true" config-file="hocon-java.xml">com.intellij.modules.java</depends>
Expand Down
2 changes: 1 addition & 1 deletion src/org/jetbrains/plugins/hocon/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package object hocon extends AsJavaExtensions with AsScalaExtensions {
type JMap[K, V] = java.util.Map[K, V]

final val HoconIcon = AllIcons.FileTypes.Config
final val PropertyIcon = IconManager.getInstance.getIcon("/icons/property.svg", getClass)
final val PropertyIcon = IconManager.getInstance.getIcon("/icons/property.svg", getClass.getClassLoader)

def notWhiteSpaceSibling(element: PsiElement)
(sibling: PsiElement => PsiElement): PsiElement = {
Expand Down

0 comments on commit bf50317

Please sign in to comment.