Skip to content

Commit 8995156

Browse files
AX-2120 - Replace internal PluginManagerCore with public API; verify against 2026.2 (#13)
Marketplace verification rejected 0.2.0 for using PluginManagerCore.getPlugin, which is @ApiStatus.Internal in 2026.2 (IU-262). Read the plugin version via the public PluginAwareClassLoader instead, and add IU-2026.2 to pluginVerification so internal-API violations are caught locally. Bump to 0.2.1 for re-upload. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent b4d40bb commit 8995156

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.0
1+
0.2.1

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
12
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
23

34
plugins {
@@ -45,6 +46,7 @@ intellijPlatform {
4546
pluginVerification {
4647
ides {
4748
current()
49+
create(IntelliJPlatformType.IntellijIdeaUltimate, "2026.2")
4850
}
4951
}
5052

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group = com.jfrog.jetbrains
2-
version = 0.2.0
2+
version = 0.2.1
33

44
pluginRepositoryUrl = https://github.com/jfrog/jetbrains-plugin
55

src/main/kotlin/com/jfrog/jetbrains/startup/JfrogJunieDeployer.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ package com.jfrog.jetbrains.startup
77
import com.google.gson.GsonBuilder
88
import com.google.gson.JsonObject
99
import com.google.gson.JsonParser
10-
import com.intellij.ide.plugins.PluginManagerCore
10+
import com.intellij.ide.plugins.cl.PluginAwareClassLoader
1111
import com.intellij.notification.NotificationGroupManager
1212
import com.intellij.notification.NotificationType
1313
import com.intellij.openapi.diagnostic.logger
14-
import com.intellij.openapi.extensions.PluginId
1514
import com.intellij.openapi.project.Project
1615
import com.intellij.openapi.startup.ProjectActivity
1716
import java.nio.file.Files
@@ -153,12 +152,11 @@ class JfrogJunieDeployer : ProjectActivity {
153152
name.removePrefix("jfrog-cli.conf.v").toIntOrNull() ?: -1
154153

155154
private val pluginVersion: String
156-
get() = PluginManagerCore.getPlugin(PluginId.getId(PLUGIN_ID))?.version ?: "dev"
155+
get() = (javaClass.classLoader as? PluginAwareClassLoader)?.pluginDescriptor?.version ?: "dev"
157156

158157
private companion object {
159158
val LOG = logger<JfrogJunieDeployer>()
160159
val DEPLOY_LOCK = Any()
161-
const val PLUGIN_ID = "com.jfrog.jetbrains"
162160
const val SKILLS_RESOURCE = "junie/junie-skills.zip"
163161
const val MARKER_FILE = ".jfrog-plugin-version"
164162
const val PLATFORM_URL_PLACEHOLDER = "<JFROG_PLATFORM_URL>"

0 commit comments

Comments
 (0)