Skip to content

Commit 9416d5a

Browse files
committed
chore: automatically fetch compatible plugin version of GitHub Copilot
1 parent 0bb3320 commit 9416d5a

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

build.gradle.kts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent
88
import org.jetbrains.changelog.Changelog
99
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
1010
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
11-
import org.jetbrains.intellij.platform.gradle.models.ProductRelease
1211
import org.jetbrains.intellij.platform.gradle.tasks.InstrumentCodeTask
1312
import org.jetbrains.intellij.platform.gradle.tasks.PrepareSandboxTask
1413
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask.FailureLevel
@@ -252,12 +251,9 @@ project(":") {
252251
pluginComposedModule(implementation(project(":plugin-copilot")))
253252

254253
// adding this for runIde support
255-
val copilotPluginVersion = prop("copilotPluginVersion")
256-
if (copilotPluginVersion.isNotEmpty()) {
257-
plugin("com.github.copilot", copilotPluginVersion)
258-
}
254+
compatiblePlugin("com.github.copilot")
259255

260-
pluginVerifier("1.384")
256+
pluginVerifier()
261257
zipSigner()
262258
}
263259
}
@@ -428,10 +424,11 @@ project(":plugin-copilot") {
428424
implementation(project(":plugin-core"))
429425
implementation("com.knuddels:jtokkit:1.1.0")
430426

431-
// Unfortunately, we can't use the Copilot plugin in test mode. In test mode with version 1.5.30-231, it throws:
427+
// Unfortunately, we can't use the Copilot plugin in test mode. In test mode with version 1.5.30-231,
428+
// it throws an exception because the test service implementations are not included:
432429
// java.lang.ClassNotFoundException: com.github.copilot.lang.agent.CopilotAgentProcessTestService
433430
/*intellijPlatform {
434-
plugin("com.github.copilot", prop("copilotPluginVersion"))
431+
compatiblePlugin("com.github.copilot")
435432
}*/
436433
}
437434
}

gradle-241.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
ideVersion=2024.1
2-
copilotPluginVersion=1.5.47-241

gradle-242.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
ideVersion=2024.2
2-
copilotPluginVersion=1.5.47-241

gradle-243.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
ideVersion=2024.3.1
2-
copilotPluginVersion=1.5.47-243

gradle-251.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
ideVersion=2025.1
2-
copilotPluginVersion=1.5.47-243

gradle-252.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
ideVersion=252.23309.22
2-
copilotPluginVersion=1.5.47-243
1+
ideVersion=252.23591.19

0 commit comments

Comments
 (0)