gradle-intellij-plugin | Gradle plugin for building plugins for IntelliJ-based IDEs | Plugin library
kandi X-RAY | gradle-intellij-plugin Summary
kandi X-RAY | gradle-intellij-plugin Summary
Gradle plugin for building plugins for IntelliJ-based IDEs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gradle-intellij-plugin
gradle-intellij-plugin Key Features
gradle-intellij-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on gradle-intellij-plugin
QUESTION
from 5 months ago I use Intellij Idea CE to develop an android studio plugin
but
after Android studio latest update
...ANSWER
Answered 2021-Aug-05 at 09:37As gradle-intellij-plugin doesn't support Android Studio natively, it doesn't know what compiler version should be used for local AS SDK, and it tries to compiler with the same version as AS, which does not exist. To fix that, you need to specify a particular compiler version explicitly using instrumenting dsl.
All available versions are listed in intellij maven repository. In your case, I think 203.7717.56 would be just fine.
So the configuration should look like this:
QUESTION
Building for IDEA 2019.1 works like a charm! I thought that building for 2020.3 would be just a matter of pointing to 2020.3 installation folder and that's it, but it is not being even close to it.
That's my gradle.build
...ANSWER
Answered 2020-Dec-19 at 18:00it turns out there was a missing plugin dependency.
this line was not being effective to resolve such dependency. In order to fix that I had to remove apply plugin: 'java' and set intellij.plugin
QUESTION
I am currently learning about writing plugins for IntelliJ IDEs. I am especially interested in developing plugins for CLion. Therefore I would like to add support for c++ to my plugin project.
My problem:I read in the documentation how to develop plugins for c++.However the way it is described does not work for me. IntelliJ cannot resolve the dependency I want to add.
What I currently know:1. This part of the documentation explains that plugins may depend on other plugins, and how to add dependencies.
Plugin dependencies
Your plugin may depend on classes from other plugins. In this case, plugins can be either bundled, third-party or even your own. For instructions on how to express the dependencies, refer to Plugin Dependencies.
Your plugin should specify which product or products it will be compatible with (all IntelliJ-based IDEs, CLion only, or some subset). You can do that by declaring module dependencies with the tag in plugin.xml (see Plugin Compatibility with IntelliJ Products).
2. This part of the documentation explains which functionality is in which plugin. Each specific language seems to be a plugin. So developing a plugin which wants to parse c++, will depend on the c++ plugin.
Modules Specific to Functionality More specialized functionality is also delivered via modules and plugins in IntelliJ Platform-based products. For example, the com.intellij.modules.python module supports the Python language-specific functionality. If a plugin uses functionality from this module, such as Python-specific inspections and refactoring, it must declare a dependency on this module.
...
The following table lists(1) modules or built-in plugins that provide specific functionality, and the products that currently ship with them.
According to the table mentioned above I need to add com.intellij.modules.cidr.lang
as dependency for c++. However when I add this line to my plugins.xml
file the cidr.lang part is not recognized.
3. In this Stackoverflow question, which is about java plugin development, someone answered that there was recently a change, that one now also has to add the needed plugins to build.gradle. Furthermore there was a change tha java language support is now a buildin plugin.
My guess what todoI guess c++ support is now also a buildin plugin? But how can I add it?
So instead of
...ANSWER
Answered 2020-Jan-12 at 09:12I found the answer in the documentation. I just had to reimport the project.
Exploring Module and Plugin APIs
Once the dependency on a module or plugin is declared in plugin.xml, it’s useful to explore the packages and classes available in that dependency. The section below gives some recommended procedures for discovering what’s available in a module or plugin on which a project depends. These procedures assume a project has the build.gradle and plugin.xml dependencies configured correctly. Exploring APIs as a Consumer
Exploring the available packages and classes in a plugin or module utilizes features in the IntelliJ IDEA IDE.
If the project is not up to date, Reimport the Gradle project as a first step. Reimporting the project will automatically update the dependencies.
So for c++ language support there is no need to add something to build.gradle
My plugin.xml
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gradle-intellij-plugin
The following attributes are a part of the Setup DSL intellij { ... } in which allows you to set up the environment and dependencies.
Value may have IC-, IU-, CL-, PY-, PC-, RD-, GO- or JPS- prefix in order to define IDE distribution type.
intellij.version and intellij.localPath should not be specified at the same time.
version #'2017.2.5' or 'IC-2017.2.5'
build #'172.4343' or 'IU-172.4343'
'LATEST-EAP-SNAPSHOT'
'IC' - IntelliJ IDEA Community Edition.
'IU' - IntelliJ IDEA Ultimate Edition.
'CL' - CLion.
'PY' - PyCharm Professional Edition.
'PC' - PyCharm Community Edition.
'RD' - Rider.
'GO' - GoLand.
'JPS' - JPS-only.
intellij.version and intellij.localPath should not be specified at the same time.
For plugins from the JetBrains Plugin Repository use format pluginId:version.
For bundled plugins version should be omitted: e.g. org.intellij.groovy for IDEA/plugins/Groovy plugin.
For sub-projects use project reference project(':subproject').
If you need to refer plugin's classes from your project, you also have to define a dependency in your plugin.xml.
org.plugin.id:version[@channel]'org.intellij.plugins.markdown:8.5.0', 'org.intellij.scala:2017.2.638@nightly'
bundledPluginName'android', 'Groovy'
project(':projectName')project(':plugin-subproject')
If true then user-defined values from patchPluginXml.sinceBuild and patchPluginXml.untilBuild will be used (or their default values if none set).
Is useful for building plugins against EAP IDE builds.
If true then the user-defined value from patchPluginXml.sinceBuild (or its default value) will be used as a since and an "open" until value.
If patchPluginXml.untilBuild has a value set, then sameSinceUntilBuild is ignored.
Since sources are not needed while testing on CI, you can set it to false for a particular environment.
Empty value means the Gradle cache directory will be used.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page