r/javahelp • u/ebykka • Jul 21 '20
How to release a Java GUI application in Github?
Hi,
I have created a JavaFX application on Github and my next problem is how to create properly releases.
For the current moment, I have discovered a few options:
Git-flow
maven release plugin
Github release from the web interface
The first thing that I've tried was git-flow. It works. Github recognizes tags in the master branch and automatically create releases but does not build and attach artifact to the release. So, I have to build and attach an artifact manually. What of cause I do not like.
And I have a feeling that maven release plugin and Github web UI will not help me with that.
So, can someone point me how to configure Github to create releases completely automatically?
1
Jul 21 '20
You can use "jpackager" to create executable and add them to github releases https://docs.oracle.com/en/java/javase/14/docs/specs/man/jpackage.html
4
1
u/bean_factory Jul 21 '20
Have you looked into jitpack? If you have a maven/gradle config it will build. Users will need to add the jitpack repo, but otherwise can point right to your github name/project. For version ids they can either target a github branche or a specific release name.