Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could this work together with Spring Boot? #7

Closed
Luthien-in-edhil opened this issue Feb 28, 2021 · 3 comments
Closed

Could this work together with Spring Boot? #7

Luthien-in-edhil opened this issue Feb 28, 2021 · 3 comments

Comments

@Luthien-in-edhil
Copy link

Hi,

this template looks very promising.
I'm eager to try out and see if it works for my project. It is a JavaFX desktop app that uses Spring Boot, JPA and a H2 database. I used FXWeaver to make Spring and JavaFX play nice together, and that seems to work perfectly OK, but I am still trying to settle on a way to build packages for Windows, Mac OS and Linux.

I've worked long enough with Spring (+Boot) to always be a bit suspicious when it comes to any novel use-case ... Spring's invisible magic is great as long as it works for you, but it can also make it extremely hard to figure out when there's an issue.

That's why I wonder if you might already have used them together, or know of another project that did?
All the best,
Lúthien

@wiverson
Copy link
Owner

I have used Spring Boot for years, and can't think of any reason you couldn't adapt this to get this template to work with your project as described. The template really is just to illustrate how to get Maven to play nicely with JavaFX modules to build stripped JVM with jpackage. The only tricky bit I can think of is some JARs are really best used as modules, not squished into a shaded JAR. That's going to look like module errors, but that's just tweaking build (specifically, exclude those JARs from the shaded JAR).

One of the use scenarios I'm looking at is to create a System Tray app template for folks that want to build a desktop app but the UI is all done via local browser interactions, but that's a bit different from what you are describing.

@wiverson
Copy link
Owner

Also (completely unrelated) Sindarin poet is the coolest thing, Luthien. Just watch out for shiny gems - they can be more trouble than they are worth. ;)

@Luthien-in-edhil
Copy link
Author

Thank you, that's encouraging to hear, I'll definitely give it a try :)

And those jewels ... alas, that's all too true!

I dhoer manath únodui,
trî annon dûr, angren thamas,
am ered gondeb, hithui
a thaur dhúatheb angoeol.
I aearon min hain dorthas,
govanner hai na vedui,
pelanner io anann ennas
úníniel vi daur, linnol.

Long was the way that fate them bore,
O'er stony mountains cold and grey,
Through halls of iron and darkling door,
And woods of nightshade morrowless.
The Sundering Seas between them lay,
And yet at last they met once more,
And long ago they passed away
In the forest, singing sorrowless.

@wiverson wiverson closed this as completed Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants