jfrog / build-info

Artifactory's open integration layer for CI build servers
https://www.buildinfo.org
Apache License 2.0
148 stars 157 forks source link

Gradle configuration cache incompatibility with IntelliJ #809

Open wegendt-bosch opened 6 days ago

wegendt-bosch commented 6 days ago

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

Additional context testproject-configcache.zip