Skip to content

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

@abrooksv

Description

@abrooksv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions