Error publishing a plugin

Hi, I am trying to publish a plugin but I am getting this error while uploading the zip file.

`Plugin descriptor plugin.xml is not found`

If I want to do the same from the command line, I get the following error. 

```> Task :verifyPlugin FAILED
Task ':verifyPlugin' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Plugin verification: Plugin descriptor plugin.xml is not found
:verifyPlugin (Thread[Task worker for ':' Thread 2,5,main]) completed. Took 0.011 secs.```

When I am testing it locally, it's working as expected.

Here is the link to my source code.

https://github.com/iamBedant/Intellij-Comment-Translator-Plugin

Can anyone help?

 

 

 

0
6 comments

Don't you need to specify your resources directory in build.gradle?

0
Avatar
Permanently deleted user

I tried specifying resources directory in build.gradle file like bellow. Still getting the same error. It would be very helpful if you can show me what I am doing wrong. Thanks.

sourceSets {
main {
java {
srcDirs 'src/java', 'gen'
}
kotlin {
srcDir 'src/kotlin'
}
resources {
srcDir 'src/main/resources'
}
}
}
0

The error is displayed in the editor:

I'll check why it's not shown in the build log.

You'd better review the plugin.xml. Besides the error in the description tag, you also do not include any modules and register obscure `defaultProjectTypeProvider` extension.

1
Avatar
Permanently deleted user

Yes. That seems to be the issue. This error is also not showing  in Intellij IDEA Community Edition  I am using Version 2018.2.7. Thanks.

0

Will be fixed in gradle-intellij-plugin-0.4, not sure about IDEA.

0

Please sign in to leave a comment.