intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Modification of the plugins block doesn't invalidate the sandbox task

Open abrooksv opened this issue 1 year ago • 0 comments

What happened?

Changing disabled plugins doesn't rebuild the config folder so the plugin stays enabled.

Side question / request:

Would it be possible to only alter the affected disabled_plugins.txt instead of everything so other config settings aren't lost?

Relevant log output or stack trace

No response

Steps to reproduce

  1. Use
        create("runIntelliJ") {
            type = IntelliJPlatformType.IntellijIdeaCommunity
            version = providers.gradleProperty("platformVersion")
            sandboxDirectory = layout.buildDirectory.dir("idea-sandbox/runIntelliJ")
        }
  1. Start IDE, see Git plugin is enabled.
  2. Change to
        create("runIntelliJ") {
            type = IntelliJPlatformType.IntellijIdeaCommunity
            version = providers.gradleProperty("platformVersion")
            sandboxDirectory = layout.buildDirectory.dir("idea-sandbox/runIntelliJ")
            plugins {
                disablePlugins("Git4Idea")
            }
        }
  1. Start IDE, see Git plugin is still enabled.
  2. Delete build/idea-sandbox/runIntelliJ/config_runInelliJ
  3. Start IDE, see Git plugin is now disabled

Gradle IntelliJ Plugin version

2.0.1

Gradle version

8.10

Operating System

macOS

Link to build, i.e. failing GitHub Action job

No response

abrooksv avatar Aug 22 '24 15:08 abrooksv