diff --git a/build.gradle.kts b/build.gradle.kts index af40ec8f..a2bf5faf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,9 +9,9 @@ plugins { // Java support id("java") // Kotlin support - id("org.jetbrains.kotlin.jvm") version "1.7.10" + id("org.jetbrains.kotlin.jvm") version "2.0.0-Beta2" // gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin - id("org.jetbrains.intellij") version "1.9.0" + id("org.jetbrains.intellij") version "1.16.1" // gradle-changelog-plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin id("org.jetbrains.changelog") version "1.3.1" // detekt linter - read more: https://detekt.github.io/detekt/gradle.html @@ -119,7 +119,7 @@ tasks { } listOf("compileKotlin", "compileTestKotlin").forEach { getByName(it) { - kotlinOptions.jvmTarget = "11" + kotlinOptions.jvmTarget = "17" } } diff --git a/gradle.properties b/gradle.properties index 99455296..3528a62e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,10 +11,10 @@ pluginSinceBuild = 211 # Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl # See https://jb.gg/intellij-platform-builds-list for available build versions. -pluginVerifierIdeVersions = 2021.1.3, 2021.2.3, 2021.3 +pluginVerifierIdeVersions = 2021.1.3, 2021.2.3, 2021.3, 2023.3 platformType = IC -platformVersion = 2021.3 +platformVersion = 2023.3 platformDownloadSources = true # Opt-out flag for bundling Kotlin standard library. diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 442d9132..070cb702 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/src/org/intellij/plugins/markdown/ui/split/SplitTextEditorProvider.java b/src/org/intellij/plugins/markdown/ui/split/SplitTextEditorProvider.java index e1e79505..1e2887c8 100644 --- a/src/org/intellij/plugins/markdown/ui/split/SplitTextEditorProvider.java +++ b/src/org/intellij/plugins/markdown/ui/split/SplitTextEditorProvider.java @@ -136,16 +136,11 @@ public FileEditorPolicy getPolicy() { public static Builder getBuilderFromEditorProvider(@NotNull final FileEditorProvider provider, @NotNull final Project project, @NotNull final VirtualFile file) { - if (provider instanceof AsyncFileEditorProvider) { - return ((AsyncFileEditorProvider)provider).createEditorAsync(project, file); - } - else { return new Builder() { @Override public FileEditor build() { return provider.createEditor(project, file); } }; - } } }