Hello,
Tool | Version |
---|---|
Gradle | 8.14 |
IntelliJ Platform Gradle Plugin | 2.5.0 |
I am trying to migrate our plugin from 1.X to 2.X, and after battling for quite a long time, I managed to get it working. I have one remaining issue, it’s taking a very long time to build now.
The main issue is the InitializeIntelliJPlatformPluginTask
task that used to take less than a second, it’s now taking more than 2 minutes due to the fingerprinting of inputs, as seen by the following screenshots from Develocity:
Before
After
I have multiple modules and each of them is taking 2+ minutes to get this task done. Each module uses a different local installation, as such:
dependencies {
intellijPlatform {
local(riderHome)
testFramework(TestFrameworkType.Platform)
}
}
In the logs, I see the following:
> Task :rider:initializeIntellijPlatformPlugin
Caching disabled for CollectorTransformer: /opt/rider because:
Caching not enabled.
Caching disabled for task ':rider:initializeIntellijPlatformPlugin' because:
Task is untracked because: Should always run
Task ':rider:initializeIntellijPlatformPlugin' is not up-to-date because:
Task is untracked because: Should always run
Resolve mutations for :rider:generateManifest (Thread[Execution worker Thread 4,5,main]) started.
:rider:generateManifest (Thread[Execution worker Thread 4,5,main]) started.
I tried this, with no success:
tasks {
named("initializeIntellijPlatformPlugin") {
outputs.cacheIf { true }
inputs.dir(file(riderHome))
outputs.dir("${layout.buildDirectory}/idea-sandbox")
}
}
Looking at the implementation of the task on your side, I see that this task is marked as @UntrackedTask(because = "Should always run")
.
I’m not sure what to do next, I’d appreciate any help or guidance
Thanks!