Create jar from plugin
I am developing plugin with custom run configuration.
After pressing run it should compile current project, create jar file and deploy it to my own server.
So question is how I can compile and create jar inside plugin?
Please sign in to leave a comment.
Why don't you simply set up a "Before launch: Build Artifacts" task for your run configuration that will build the jar for you? That's by far the simplest possible solution.
Thank you for answer. Could you please help me how to do it from code?
You can use the BuildArtifactsBeforeRunTaskProvider.setBuildArtifactBeforeRun() method to set this up.