-
Notifications
You must be signed in to change notification settings - Fork 69
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
Self containing jar #62
Comments
I only have a small experimental project, but the documented approach is working fine for me https://github.com/edward3h/fcgi-with-graal/blob/main/test-javalin/build.gradle |
@gringofe thank you, that's amazing to hear! Thanks for sharing your setup, that indeed sounds very good. Do you think it makes sense to add this to the documentation, as a third way to setup gradle? |
@edward3h awesome, thanks for sharing! |
I think it would make sense, even if it's just a "fallback" option |
I've updated the docs: 35000c4 Thanks for sharing! Also, nice that you're using the binary templates! :-) Closing this, feel free to reopen if I missed something. |
Hey,
I have just migrated my page from pebble to jte and I love it. Thank you very much for this great project!
When trying to compile a self containing a jar, I tried your approach, which did not properly work for some reason, and also fcked up my project since the
build/
directory got added to the srcSet. So what I did instead, is quite simple, and seems to work very well:I used the other approach, but kept the precompiled-loading from the other approach (
TemplateEngine.createPrecompiled(ContentType.Html)
). I then added this snippet to my gradle jar task:Which copies the compile output to the jar. (I also had to add
dependsOn precompileJte
at the beginning of my jar task). Just wanted to let you know, maybe it is of some use to you or fellow users of this library.The text was updated successfully, but these errors were encountered: