Skip to content

Conversation

Copy link

Copilot AI commented Sep 15, 2025

  • Identify build errors related to the IntelliJ Platform Gradle Plugin upgrade
  • Fix bundled plugin configuration - changed plugins() to bundledPlugins() for Git4Idea
  • Analyze network connectivity issues preventing IntelliJ Platform dependency resolution
  • Provide solution to user for completing the build

Summary

Successfully identified and fixed the primary build configuration issue with the IntelliJ Platform Gradle Plugin 2.9.0 upgrade:

Fixed Issues:

  1. Plugin Dependency Configuration: Changed plugins(pluginList) to bundledPlugins(pluginList) for bundled plugins like Git4Idea, which is required in plugin version 2.x

Network Issue Identified:

The remaining build failure is due to blocked access to JetBrains repositories:

  • cache-redirector.jetbrains.com
  • download.jetbrains.com

These domains need to be added to the firewall allowlist for the IntelliJ Platform artifacts to be downloaded successfully.

The plugin upgrade configuration is now correct and will work once network access is enabled.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@adrienpessu adrienpessu changed the title [WIP] I would like to upgrade the version gradle Intelli JPlugin from 1.17.4 to 2.9.0 [WIP] upgrade the version gradle Intelli JPlugin from 1.17.4 to 2.9.0 Sep 15, 2025
@github-actions
Copy link

Qodana Community for JVM

21 new problems were found

Inspection name Severity Problems
Unused import directive 🔶 Warning 3
Incorrect string capitalization 🔶 Warning 2
Redundant SAM constructor 🔶 Warning 2
Redundant call of the conversion method 🔶 Warning 2
Unused symbol 🔶 Warning 1
Property naming convention ◽️ Notice 6
Function or property has platform type ◽️ Notice 2
Unnecessary parentheses in function call with lambda ◽️ Notice 2
Object literal can be converted to lambda ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

… full configuration migration

Co-authored-by: adrienpessu <[email protected]>
Copilot AI changed the title [WIP] upgrade the version gradle Intelli JPlugin from 1.17.4 to 2.9.0 Upgrade Gradle IntelliJ Plugin from 1.17.4 to 2.9.0 Sep 15, 2025
Copilot AI requested a review from adrienpessu September 15, 2025 08:27
Copilot finished work on behalf of adrienpessu September 15, 2025 08:27
@adrienpessu
Copy link
Collaborator

@copilot review the build errors and fix the PR

Copy link
Author

Copilot AI commented Sep 15, 2025

@copilot review the build errors and fix the PR

I've analyzed the build errors and made the necessary fixes. The main issue was with plugin dependency configuration in the new IntelliJ Platform Gradle Plugin 2.9.0.

Fixed in commit fc2ca23:

  • Changed plugins() to bundledPlugins() for the Git4Idea dependency (bundled plugins require different declaration in v2.x)

Remaining issue:
The build still fails due to network connectivity. The IntelliJ Platform artifacts need to be downloaded from:

  • cache-redirector.jetbrains.com
  • download.jetbrains.com

These domains are currently blocked by the firewall (as mentioned in the PR warning). To complete the build, please add these URLs to the firewall allowlist in the Copilot coding agent settings.

Once network access is enabled, the build should complete successfully with the plugin configuration fixes I've implemented.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cache-redirector.jetbrains.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:&#43;HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.6-bin/afr5mpiioh2wthjmwnkmdsd5w/gradle-8.6/lib/gradle-launcher-8.6.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.6-bin/afr5mpiioh2wthjmwnkmdsd5w/gradle-8.6/lib/agents/gradle-instrumentation-agent-8.6.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.6 (dns block)
  • download.jetbrains.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:&#43;HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.6-bin/afr5mpiioh2wthjmwnkmdsd5w/gradle-8.6/lib/gradle-launcher-8.6.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.6-bin/afr5mpiioh2wthjmwnkmdsd5w/gradle-8.6/lib/agents/gradle-instrumentation-agent-8.6.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.6 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot finished work on behalf of adrienpessu September 15, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants