Skip to content

Commit

Permalink
Merge pull request #26 from LukBukkit/intellij-2022-3
Browse files Browse the repository at this point in the history
Support latest 2022.3 IntelliJ
  • Loading branch information
garyttierney committed Dec 4, 2022
2 parents 12fe5f2 + b42675d commit 2576518
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
12 changes: 7 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.jetbrains.changelog.Changelog.OutputType
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

Expand All @@ -7,11 +8,11 @@ plugins {
// Java support
id("java")
// Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.7.10"
id("org.jetbrains.kotlin.jvm") version "1.7.22"
// Gradle IntelliJ Plugin
id("org.jetbrains.intellij") version "1.7.0"
id("org.jetbrains.intellij") version "1.10.0"
// Gradle Changelog Plugin
id("org.jetbrains.changelog") version "1.3.1"
id("org.jetbrains.changelog") version "2.0.0"
// Gradle Qodana Plugin
id("org.jetbrains.qodana") version "0.1.13"
}
Expand Down Expand Up @@ -85,8 +86,9 @@ tasks {
// Get the latest available change notes from the changelog file
changeNotes.set(provider {
changelog.run {
getOrNull(properties("pluginVersion")) ?: getLatest()
}.toHTML()
val item = getOrNull(properties("pluginVersion")) ?: getLatest()
changelog.renderItem(item, OutputType.HTML)
}
})
}

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@

pluginGroup = com.codingmates.ghidra
pluginName = IntelliJ Ghidra
pluginVersion = 0.4.0
pluginVersion = 0.4.1

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 203
pluginUntilBuild = 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 = com.intellij.java

# 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
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import com.intellij.openapi.module.Module
import com.intellij.openapi.module.ModuleManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.*
import com.intellij.openapi.roots.libraries.Library
import com.intellij.util.messages.MessageBusConnection


Expand Down Expand Up @@ -68,7 +67,7 @@ class GhidraFacet(
var modelChanged = false

try {
val libraries = ModifiableModelsProvider.SERVICE.getInstance().libraryTableModifiableModel
val libraries = ModifiableModelsProvider.getInstance().libraryTableModifiableModel
val library = libraries.getLibraryByName(GHIDRA_LIBRARY_NAME)

if (library != null) {
Expand All @@ -90,7 +89,7 @@ class GhidraFacet(

try {
val installation = configuration.loadGhidraInstallation()
val libraries = ModifiableModelsProvider.SERVICE.getInstance().libraryTableModifiableModel
val libraries = ModifiableModelsProvider.getInstance().libraryTableModifiableModel

var library = libraries.getLibraryByName(GHIDRA_LIBRARY_NAME)
if (library == null) {
Expand Down

0 comments on commit 2576518

Please sign in to comment.