From 8b0699b288b32c554da7e7d3f974ff7fcf1c5c11 Mon Sep 17 00:00:00 2001 From: Benoit 'BoD' Lubek Date: Wed, 24 Jul 2024 11:27:43 +0200 Subject: [PATCH] Migrate to org.jetbrains.intellij.platform v2.0.0 (#5657) * Migrate to org.jetbrains.intellij.platform v2.0.0 * Move more configuration to intellijPlatform {} instead of customizing tasks * Fix verifyPlugin * Move dependencies before intellijPlatform so verifyPlugin works * Move dependencies back at the bottom and add pluginVerifier() dependencies * Add testFramework() to dependencies * Bump to 2.0.0-beta1 * Add .intellijPlatform to .gitignore * Fix testFramework and toml plugin * Fix plugin name in descriptor * Add zipSigner() to dependencies * Add a runLocalIde task that uses the apolloIntellijPlugin.ideDir property * Update intellij-platform-plugin to 2.0.0-beta2 * Bump intellij-platform-gradle-plugin to 2.0.0-beta3 * Bump intellij-platform-gradle-plugin to 2.0.0-beta4 * Bump intellij-platform-gradle-plugin to 2.0.0-beta5 * Bump intellij-platform-gradle-plugin to 2.0.0-beta6 * Use project.provider instead of Callable in registerCheckVersionsTask to avoid a ConcurrentModificationException * Revert calling project.provider instead of Callable in registerCheckVersionsTask * Bump intellij-platform-gradle-plugin to 2.0.0-beta7 * Bump intellij-platform-gradle-plugin to 2.0.0-beta8 * Bump intellij-platform-gradle-plugin to 2.0.0-beta9 * Try to fix using a local IDE * Bump intellij-platform-gradle-plugin to 2.0.0-rc1 --- .github/workflows/pr.yml | 6 +- .gitignore | 1 + .../runConfigurations/Run_IntelliJ_plugin.xml | 5 +- build-logic/build.gradle.kts | 2 +- gradle/libraries.toml | 2 +- gradle/repositories.gradle.kts | 7 +- intellij-plugin/build.gradle.kts | 205 +++++++++--------- intellij-plugin/gradle.properties | 12 +- 8 files changed, 124 insertions(+), 116 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 973b9628a44..c815daee49a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -105,7 +105,7 @@ jobs: - name: Fetch Sources uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 - # Setup Java 11 environment for the next steps + # Setup Java environment for the next steps - name: Setup Java uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1 with: @@ -124,7 +124,7 @@ jobs: echo "::set-output name=version::$VERSION" echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier" - ./gradlew :intellij-plugin:listProductsReleases # prepare list of IDEs for Plugin Verifier + ./gradlew :intellij-plugin:printProductsReleases # prepare list of IDEs for Plugin Verifier # Trigger code generation in test project, as the plugin's tests depend on it - name: Test project codegen @@ -151,7 +151,7 @@ jobs: # Run Verify Plugin task and IntelliJ Plugin Verifier tool - name: Run Plugin Verification tasks - run: ./gradlew :intellij-plugin:runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }} + run: ./gradlew :intellij-plugin:verifyPlugin -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }} # Collect Plugin Verifier Result - name: Collect Plugin Verifier Result diff --git a/.gitignore b/.gitignore index 12daf509a52..a83e69917ed 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ package-lock.json # IntelliJ plugin intellij-plugin/mockJDK +.intellijPlatform diff --git a/.idea/runConfigurations/Run_IntelliJ_plugin.xml b/.idea/runConfigurations/Run_IntelliJ_plugin.xml index afdce5b4984..c3b81888a79 100644 --- a/.idea/runConfigurations/Run_IntelliJ_plugin.xml +++ b/.idea/runConfigurations/Run_IntelliJ_plugin.xml @@ -16,7 +16,7 @@