Error: Cannot find builtin plugin Gradle for IDE
Answered
Hi!
I tried to set up automatic builds via Github Actions for my plugin: https://github.com/scana/ok-gradle/
For some reason plugin builds fine locally, but I am unable to build it on CI, due to Gradle builtin plugin not being found.
> Cannot find builtin plugin Gradle for IDE:
/home/runner/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/192.7142.36/a2eb13f21bdc018b64b31208823a57771b47273/ideaIC-192.7142.36
My intellij plugin's config is:
intellij {
updateSinceUntilBuild false
plugins = ["java", "android", "Groovy", "Gradle"]
version = "IC-192.7142.36"
}
Link to Action's output: https://github.com/scana/ok-gradle/commit/543a2bde03bb93331e746765057ede5ead66e7d6/checks?check_suite_id=404198884
Is there something I'm missing? Without Gradle's plugin reference, my project does not build locally.
Would appreciate any kind of help or tips.
Please sign in to leave a comment.
Ok, I managed to resolve it by updating gradle-intellij-plugin to the most recent version.
After trying to build locally with that version I got an error:
Builtin plugins should be referred case-sensitively. Expected: gradle. Got: Gradle
Changing the name the name resolved my issues with builds on CI.
I have no idea why it was working locally, though.
Case-sensitivity depends on the filesystem/OS of the machine - I'd assume your local dev machine file system isn't case-sensitive but the CI machine ones is.