edvin / fxlauncher

Auto updating launcher for JavaFX Applications
Apache License 2.0
715 stars 107 forks source link

Is it possible to make one fat jar including all dependencies? #194

Open bbgglee opened 3 years ago

bbgglee commented 3 years ago

Ex)

After execute task:copyAppDependencies by fxlauncher-gradle-plugin I want to one fat jar(executable jar) including all dependencies. Is it possible? (or other solution)

AS-IS

<Application ts="1601743866179" uri="https://myuri" launch="me.test.MainApp">
<lib file="kotlin-stdlib-jdk8.jar" checksum="1946501329" size="15479"/>
<lib file="kotlin-stdlib-common.jar" checksum="28068597" size="179598"/>
<lib file="kotlin-stdlib.jar" checksum="1959459436" size="1379873"/>
<lib file="test-0.0.1-SNAPSHOT.jar" checksum="3847133054" size="14072936"/>
<updateText>update</updateText>
<updateLabelStyle>-fx-font-weight: bold;</updateLabelStyle>
<progressBarStyle>-fx-pref-width: 200;</progressBarStyle>
<wrapperStyle>-fx-spacing: 10; -fx-padding: 25;</wrapperStyle>
<acceptDowngrade>false</acceptDowngrade>
<stopOnUpdateErrors>false</stopOnUpdateErrors>
<lingeringUpdateScreen>false</lingeringUpdateScreen>
</Application>

TO-BE

<Application ts="1601743866179" uri="https://myuri" launch="me.test.MainApp">
<lib file="test-0.0.1-SNAPSHOT.jar" checksum="3847133054" size="expecting to size up"/>
<updateText>update</updateText>
<updateLabelStyle>-fx-font-weight: bold;</updateLabelStyle>
<progressBarStyle>-fx-pref-width: 200;</progressBarStyle>
<wrapperStyle>-fx-spacing: 10; -fx-padding: 25;</wrapperStyle>
<acceptDowngrade>false</acceptDowngrade>
<stopOnUpdateErrors>false</stopOnUpdateErrors>
<lingeringUpdateScreen>false</lingeringUpdateScreen>
</Application>