Does the Gradle IntelliJ plugin provide a way to publish to a custom plugin repository?

Answered

Does the Gradle IntelliJ plugin provide a way to publish to a custom plugin repository?

0
7 comments

I meant the custom hosted plugin repository.

Do you have a suggestion on how to do it for a custom hosted plugin repository?

I'm looking at doing the following since the Gradle IntelliJ plugin doesn't support my use case.

  1. Run buildPlugin.
  2. Upload the jar file created in the target/distribution folder.
0

You'll have to customize your build.gradle task to create proper updatePlugins.xml and then use FTP/SFTP/... tasks to upload the file. There's no ready-made solution.

0

Gotcha.

The zip file created in the target/distribution folder when buildPlugin task is run is the zip file that I need to upload to the custom hosted plugin repository right?

0

Yann Cebron: Is there any solution available for this now? Or for publishing it to custom repository, it need to be done manually only?

Also, by any means IDE dependency can be omitted to build plugin in Jenkins pipeline?

0

There is no automated solution for this.

What exactly do you mean with "IDE dependency"? You'll definitely need to setup the required IntelliJ SDK to compile against (which is trivial when using Gradle based setups, https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system.html)

1

Please sign in to leave a comment.