Deploying Project Open Source

Answered

Hi,

I have just finished a JavaFX project and deployed it to GitHub.

Now the problem I have is that this is what I pushed to GitHub: https://github.com/shivampaw/cPanelEmailManager

I didn't know how or where to include the libraries (Gson and jlfgr). I figured I should be using a tool like Maven but how can I integrate Maven into an existing project?

For example, with PHP I could add a composer.json and then just run composer install and everything would work. Is there a way with Java to do this and what's the best way to go about it? Also, what files should be uploaded to GitHub when deploying a Java project? Should I upload an executable jar?

Thanks a lot!

0
1 comment

You can use Maven or Gradle. Build file has to be created manually, then you can import it in IDEA and commit to git.

If you don't want to use any build tool, share IDE project files and keep the jar libraries in the project tree, see https://intellij-support.jetbrains.com/hc/articles/206544839.

Some legacy projects also use Ant to produce jars from the command line.

Final jars are normally published as Releases on GitHub and should not be present in the repository tree.

0

Please sign in to leave a comment.