I've updated File->Project Structure adding jar as an Artifact.
I noticed I can use a custom "Other" artifact to copy my whole project folder to another destination. Unfortunately they are not zipped at the destination, and I don't see how to make this happen.
How can I copy them into a zip file automatically, so when I am done I can upload the zip and jar off of my computer more easily, instead of manually zipping or uploading the directory recursively.
From the main menu, select File | Export | Project to Zip File. In the dialog that opens, specify the path to which you want to save the . zip file with the project and click Save.
Download a file from the default deployment serverFrom the main menu, choose Tools | Deployment | Download from <default server>. IntelliJ IDEA will prompt you to overwrite local files, if any.
File > Project Structure... or press Ctrl + Alt + Shift + S. Project Settings > Modules > Dependencies > "+" sign > JARs or directories... Select the jar file and click on OK, then click on another OK button to confirm. You can view the jar file in the "External Libraries" folder.
If you create a new Artifact of type Other. Then click the create the Archive button (it is next to the new directory button) and give it a name, project.zip for example. Right click the new zip entry under 'output root' and select 'add copy of' and then 'directory content'. Browse to your project directory and select it in the file picker. Click Apply and that should work.
It should look something like the screenshot below. Now just build the Artifact in the usual way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With