Gradle migration: PHP plugin not found Follow
Hi!
I am currently adding Gradle support to my existing plugin, I created a new Gradle project and copied my existing sources into the new project and I am running into a big problem here. My plugin works with PHP language elements so I need the php.jar and php-openapi.jar files to be provided. (before Gradle I added them like it's described here: https://confluence.jetbrains.com/display/PhpStorm/Setting-up+environment+for+PhpStorm+plugin+development ) Since these jar files are not included in IDEA I tried adding them like in this example https://github.com/oroinc/oro-phpstorm-plugin/blob/master/build.gradle but when I try this, Gradle tells me "Error: Cannot find builtin plugin php for IDE: ....." I tried different versions and switched between ultimate and community version but the error persists, nothing I can do about it. Is there any other way I could add the required libs? I tried adding them like this: https://stackoverflow.com/a/34899917 but then I got duplicate dependencies, both libs were Provided and Compile. But when I tried building the project it gave me an error, telling me the php language elements couldn't be found, so it seems like they weren't included at all in the build process.
Please sign in to leave a comment.
Hi Julian,
Please follow the documentation of `gradle-intellij-plugin` and add PHP plugin as a plugin dependency using `intellij.plugins` property.
Hi Alexander,
I have added the plugin now like this:
however I then get this error "Error:Invalid type of downloaded plugin: /tmp/intellij1252672658819770596/php-173.3188.24.zip?updateId=39499&pluginId=6610".
Likely, gradle-IntelliJ-plugin you use is outdated, upgrade to the latest version.
That was indeed the case, sorry to bother and thanks for your help!
No problem, it was our fault that integration with plugins repository was broken in the previous versions.