Skip to content

Commit

Permalink
Bump platformVersion to 2022.3
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Wang <scaventz@outlook.com>
  • Loading branch information
scaventz committed Mar 24, 2023
1 parent 09b09c3 commit 883683e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 11
java-version: 17
cache: gradle

# Set environment variables
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 11
java-version: 17
cache: gradle

# Set environment variables
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-ui-tests.yml
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 11
java-version: 17
cache: gradle

# Run IDEA prepared for UI testing
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Expand Up @@ -8,19 +8,19 @@ pluginVersion = 0.1.4

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 222
pluginSinceBuild = 223
pluginUntilBuild = 223.*

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = IC
platformVersion = 2022.2
platformVersion = 2022.3

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins =

# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
javaVersion = 11
javaVersion = 17

# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion = 7.5
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/com/scaventz/window/ComparatorForm.kt
Expand Up @@ -20,13 +20,13 @@ import com.intellij.ui.DocumentAdapter
import com.intellij.ui.dsl.builder.*
import com.intellij.ui.dsl.gridLayout.HorizontalAlign
import com.intellij.ui.dsl.gridLayout.VerticalAlign
import com.intellij.util.castSafelyTo
import com.scaventz.services.Kotlinc
import java.io.File
import javax.swing.JButton
import javax.swing.JPanel
import javax.swing.event.DocumentEvent
import com.intellij.ui.dsl.builder.bindSelected
import com.intellij.util.asSafely
import com.scaventz.data.Decompiled
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
Expand Down Expand Up @@ -108,7 +108,7 @@ open class ComparatorForm(private val project: Project) {
var result2: Decompiled? = null
var request: ContentDiffRequest? = null
val editorManager = FileEditorManager.getInstance(project)
val editor = editorManager.selectedTextEditor.castSafelyTo<EditorEx>() ?: throw RuntimeException()
val editor = editorManager.selectedTextEditor.asSafely<EditorEx>() ?: throw RuntimeException()
val psi = getKtFile(editor.virtualFile)
val relativePath = psi.packageFqName.asString().replace('.', '/')

Expand Down

0 comments on commit 883683e

Please sign in to comment.