Folks, please check if the issue is resolved with the latest IntelliJ Platform Gradle Plugin 2.2.2-SNAPSHOT
How to use snapshot Gradle plugin release:
Folks, please check if the issue is resolved with the latest IntelliJ Platform Gradle Plugin 2.2.2-SNAPSHOT
How to use snapshot Gradle plugin release:
@jakub.chrzanowski I am getting an error when running with the SNAPSHOT
Please file an issue attaching the content and exception message to: https://github.com/jetbrains/intellij-platform-gradle-plugin/issues/new
## Model:
org.jetbrains.intellij.platform.gradle.models.ProductInfo
## Content:
{
"name": "IntelliJ IDEA",
"version": "2025.1",
"versionSuffix": "EAP",
"buildNumber": "251.20015.29",
"productCode": "IC",
"envVarBaseName": "IDEA",
"dataDirectoryName": "IdeaIC2025.1",
"svgIconPath": "bin/idea.svg",
"productVendor": "JetBrains",
"launch": [
{....
Maybe I am doing something wrong?
This is my gradle.properties:
pluginSinceBuild=251.17181.16
pluginUntilBuild=251.*
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension
platformType=IC
platformVersion=251-EAP-SNAPSHOT
and this is build gradle:
intellijPlatform {
create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion"), useInstaller = false)
bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') })
jetbrainsRuntime()
pluginVerifier()
zipSigner()
testFramework(TestFrameworkType.Starter)
testFramework(TestFrameworkType.JUnit5)
testFramework(TestFrameworkType.Platform)
}
and
java.lang.AbstractMethodError: Receiver class org.jetbrains.intellij.platform.gradle.models.ProductInfo$$serializer does not define or inherit an implementation of the resolved method 'abstract kotlinx.serialization.KSerializer[] typeParametersSerializers()' of interface kotlinx.serialization.internal.GeneratedSerializer.
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.typeParameterDescriptors_delegate$lambda$
I opened an issue on the repo as well
I removed all workarounds and using 2.2.2-SNAPSHOT it works now. Thank you!
@daniele_athome Did you run the verify plugin? Did it passed?
Youâre right, verify didnât work - I only tried running it. Is that because of the fixed plugin not being released yet maybe? Same errors as before anyway, no new stuff: Temporarily switch to snapshot version of IntelliJ Gradle plugin ¡ daniele-athome/hass-intellij-plugin@cf67917 ¡ GitHub
Yes it is because of that - once the verifier will be release it should pass
Hello, gradle plugin version is 2.3.0, idea EAP6, but some classes from yaml are still not found without workaround bundledModule("intellij.yaml.backend")
. Attached is an example
The intellij.yaml.backend
module from the YAML plugin is not available by default, and it is now required to use the bundledModule("intellij.yaml.backend")
helper to load this part in the compilation time. Eventually, youâll have to:
dependencies {
// ...
intellijPlatform {
// ...
bundledPlugin("org.jetbrains.plugins.yaml")
bundledModule("intellij.yaml.backend")
}
}
In the plugin.xml
file â if using the <depends>
element to define dependencies on another plugin, you need:
<depends>org.jetbrains.plugins.yaml</depends>
However, if switched to the model v2, thatâd be:
<dependencies>
<plugin id="org.jetbrains.plugins.yaml"/>
<module name="intellij.yaml.backend"/>
</dependencies>
Thank you @jakub.chrzanowski - I confirm that this is now working (I updated both the latest EAP version and the latest released version of the Gradle plugin).
About the model v2 - do you have a pointer for me that describes reasons when to switch to v2 with possible benefits, and a how-to? Thanks!
Switching to v2 isnât recommended for external developers yet due to limited support and potential compatibility issues. Itâs better to wait for more documentation and tooling.
I added everything needed to my build scripts AFAICU and it even builds on CI. However uploading the plugin to the marketplace triggers a verifier error about a missing YAMLWordScanner
class (I use it for FindUsagesProvider
). What am I doing wrong?
Here is the bundleModules: hass-intellij-plugin/build.gradle.kts at master ¡ daniele-athome/hass-intellij-plugin ¡ GitHub (mentioned variables are inside the dedicated toml file).
The Plugin Verifier used in Marketplace still produces false positives. Weâre waiting for three new releases of that tool as the issue is already addressed.
Today I found the time to upgrade to plugin 2.5.0. I also updated to the latest EAP. It also seems that the plugin verifier was updated?!
I was able to remove the workaround with bundledModule(...)
then.
Thank you for everyone involved here. I consider this resolved.