From a35124dad042b69d2870c86adf483a5fa57b1482 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 09:38:36 +0000 Subject: [PATCH 1/2] chore(deps): bump ru.openide.platform from 1.2.2 to 1.3.1 Bumps ru.openide.platform from 1.2.2 to 1.3.1. --- updated-dependencies: - dependency-name: ru.openide.platform dependency-version: 1.3.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 22425cd1..7984afc0 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,7 +8,7 @@ changelog = "2.5.0" intelliJPlatform = "2.20.1" kotlin = "2.4.21" kover = "0.9.11" -openidePlatform = "1.2.2" +openidePlatform = "1.3.1" qodana = "2026.3.1" [libraries] From 09b70e0825260cbc927f971a1ad04a57a30cc6d1 Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Mon, 30 Nov 2026 15:51:05 +0400 Subject: [PATCH 2/2] build(openide): verify against the distribution ru.openide.platform 1.3.1 resolves 1.3.1 no longer unpacks OpenIDE into build/tmp/openide but into Gradle's shared transforms cache, so the hard-coded path broke verifyPlugin; the plugin's own `ides { openide(...) }` replaces it, and `clean` has nothing left to spare. Assisted-By: Claude Opus 5.5 --- CLAUDE.md | 4 ++-- build.gradle.kts | 19 +++---------------- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 3aee27a3..21bc495f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -85,8 +85,8 @@ checks prevent dependencies between the two adapters. The OpenIDE build has its own output directory (`build/openide`) and ZIP name. It is excluded from the Gradle `phpApis` fan-out; `release.yml` publishes it separately to the OpenIDE plugin store with `OPENIDE_PUBLISH_TOKEN`. -Each variant's `clean` preserves the other variant's output; the OpenIDE distribution is retained because the -platform plugin unpacks it during configuration. +Each variant's `clean` preserves the other variant's output. `ru.openide.platform` unpacks the OpenIDE distribution +into Gradle's shared transforms cache, outside `build/`. `verifyPlugin` stages the resolved PHP plugin in a local dependency repository and checks it in offline mode. This verifies the same dependency artifact used for compilation, without looking for it in JetBrains Marketplace. diff --git a/build.gradle.kts b/build.gradle.kts index 3a458700..bd589842 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,10 +26,6 @@ val isOpenIde = phpApi == "openide" fun apiProperty(name: String) = providers.gradleProperty("$name.$phpApi") -/** Where ru.openide.platform unpacks the OpenIDE distribution `openide(...)` asks for. */ -val openIdeDistribution: Provider = - apiProperty("platformVersion").flatMap { layout.buildDirectory.dir("tmp/openide/openIDE/$it") } - // Both implementations compile into the same packages of the core, so the OpenIDE variant gets a build directory of its // own: sharing build/ would mix one variant's classes into the other's jar. if (isOpenIde) { @@ -178,7 +174,7 @@ intellijPlatform { if (isOpenIde) { // The recommended IDEs are the ones the JetBrains Marketplace lists for this plugin, and OpenIDE is not // among them; verify against the OpenIDE distribution the variant is built with instead. - local(openIdeDistribution) + openide(apiProperty("platformVersion")) } else { recommended() } @@ -233,19 +229,10 @@ tasks { } } clean { - // Each variant cleans its own output: a PhpStorm variant leaves build/openide alone. The OpenIDE variant spares - // the distribution ru.openide.platform unpacks into its build/tmp/openide while CONFIGURING, before `clean` - // runs — deleting it in `clean compileKotlin` would take away the classpath the compilation is about to use, - // and it is gigabytes to download and unpack again. + // Each variant cleans its own output: a PhpStorm variant leaves build/openide alone. val buildDirectory = layout.buildDirectory.get().asFile setDelete(provider { - buildDirectory.listFiles().orEmpty().flatMap { child -> - when { - isOpenIde && child.name == "tmp" -> child.listFiles().orEmpty().filter { it.name != "openide" } - !isOpenIde && child.name == "openide" -> emptyList() - else -> listOf(child) - } - } + buildDirectory.listFiles().orEmpty().filter { isOpenIde || it.name != "openide" } }) } if (isOpenIde) {