Trying to extend the Database Plugin in Ultimate using Gradle

已回答

Hello

I plan to add some more import options for datasources to the Database plugin in IntelliJ Ultimate. I used the create new project wizard to bootstrap the plugin. After some hassle with finding the dependency for the database module, the build now complains about the ultimate module not being present ("PDB DataSource Importer" is my new plugin):

  2020-04-06 20:08:40,185 [ 642] ERROR - llij.ide.plugins.PluginManager - Problems found loading plugins:
Plugin "Database Tools and SQL" requires missing "com.intellij.modules.ultimate"
Plugin "PDB DataSource Importer" requires disabled "Database Tools and SQL"
java.lang.Throwable: Problems found loading plugins:
Plugin "Database Tools and SQL" requires missing "com.intellij.modules.ultimate"
Plugin "PDB DataSource Importer" requires disabled "Database Tools and SQL"
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)

the plugin.xml looks like this (the ultimate module is marked red by intellij):

<idea-plugin>
<id>org.example.pdb-datasource-importer</id>
<name>PDB DataSource Importer</name>

<depends>com.intellij.modules.platform</depends>
<depends>com.intellij.modules.ultimate</depends>
<!--
<depends>com.intellij.modules.database</depends>
-->
<depends>com.intellij.database</depends>

<extensions defaultExtensionNs="com.intellij">
<!-- Add your extensions here -->
</extensions>

<actions>
<!-- Add your actions here -->
</actions>
</idea-plugin>

the build.gradle.kts:

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = "2019.3.4"
setPlugins("com.intellij.database:193.6911.22")
// setPlugins("com.intellij.modules.ultimate:193.6911.22")
}

There seems to be no ultimate plugin similar to the database one. Or what is the proper way to configure this?

Any hints or another plugin using gradle that does the same would be cool :)

0

Werner,

By default, gradle-intellij-plugin uses the IntelliJ Community. Please try to switch to IntelliJ Ultimate by setting

intellij {
// ...

type = 'IU'
}

ref: https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties

1

Ohhhhh! I cee. I mean IU. Arrrrgh. So close and yet so far... let me try that real quick.

Jepp! Thats it! 

 

Thanks a lot!

0

请先登录再写评论。