Skip to content

Gradle configuration cache incompatibility with IntelliJ #809

@wegendt-bosch

Description

@wegendt-bosch

Describe the bug
When using version 5.2.5 of com.jfrog.artifactory when debugging from IntelliJ gradle can never reuse its configuration cache because
Calculating task graph as configuration cache cannot be reused because system property 'idea.debugger.dispatch.port' has changed.
Changing 'idea.debugger.dispatch.port' on every run in and of itself would be ok, but build-info-extractor-gradle-5.2.5.jar!\initscripttemplate.gradle captures the whole of gradle.startParameter.getProjectProperties(). I've also opened a bug in IntelliJ, please work together to decide on who fixes what, I'm just a user ;)

https://youtrack.jetbrains.com/issue/IDEA-363515/Gradle-configuration-cache-never-reused

To Reproduce
I've attached a sample project. Debug the task :app:launch to reproduce.

Expected behavior
Gradle can always reuse the configuration cache.

Screenshots
See ticket in IntelliJ

Versions

  • Gradle Artifactory plugin version: 5.2.5
  • Operating system: Windows 11
  • Artifactory Version: 7.90.15 rev 79015900

Additional context
testproject-configcache.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    gradle bugCreate a report to help us improve

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions