From fb3eb4f327bb97cfc606d1b3d2f228202b0f40d0 Mon Sep 17 00:00:00 2001 From: Yanhui Li Date: Fri, 27 Dec 2024 13:16:51 +1100 Subject: [PATCH] Intellij Platform Plugin migration - support multiple IDE versions --- .github/workflows/build.yml | 55 ------------------------------------- build.gradle.kts | 4 ++- 2 files changed, 3 insertions(+), 56 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd6f2d2..513288d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -158,61 +158,6 @@ jobs: path: ./build/distributions/${{ needs.build.outputs.artifact }} if-no-files-found: error - # Verify built plugin using IntelliJ Plugin Verifier tool - # Requires build job to be passed - verify: - name: Verify - needs: build - runs-on: ubuntu-latest - steps: - - # Setup Java 17 environment for the next steps - - name: Setup Java - uses: actions/setup-java@v3.5.0 - with: - java-version: 17 - distribution: 'zulu' - - # Check out current repository - - name: Fetch Sources - uses: actions/checkout@v3 - with: - submodules: true - - # Cache Gradle Dependencies - - name: Setup Gradle Dependencies Cache - uses: actions/cache@v3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }} - - # Cache Gradle Wrapper - - name: Setup Gradle Wrapper Cache - uses: actions/cache@v3 - with: - path: ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} - - # Set environment variables - - name: Export Properties - id: properties - shell: bash - run: | - PROPERTIES="$(./gradlew properties --console=plain -q)" - IDE_VERSIONS="$(echo "$PROPERTIES" | grep "^pluginVerifierIdeVersions:" | base64)" - echo "::set-output name=ideVersions::$IDE_VERSIONS" - echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier" - # Cache Plugin Verifier IDEs - - name: Setup Plugin Verifier IDEs Cache - uses: actions/cache@v3 - with: - path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides - key: ${{ runner.os }}-plugin-verifier-${{ steps.properties.outputs.ideVersions }} - - # Run IntelliJ Plugin Verifier action using GitHub Action -# - name: Verify Plugin -# run: ./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }} - # Prepare a draft release for GitHub Releases page for the manual verification # If accepted and published, release workflow would be triggered releaseDraft: diff --git a/build.gradle.kts b/build.gradle.kts index 89952c3..280be9a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -83,7 +83,9 @@ intellijPlatform { pluginVerification { ides { - ide(IntelliJPlatformType.IntellijIdeaCommunity, properties("pluginVerifierIdeVersions").split(',').map(String::trim).filter(String::isNotEmpty)[0]) + properties("pluginVerifierIdeVersions").split(',').map(String::trim).filter(String::isNotEmpty).forEach { + ide(IntelliJPlatformType.IntellijIdeaCommunity, it) + } } }