News for hackers. Stuff that matters.
Re:Show HN: I finished v5 of a JVM framework I've spent spen... by sandGorgon on Monday October 03, 2022 @12:32PM (#33069826)
this is very cool. quick question though - do u have a gradle build setup ? im new to java and saw this problem on spring boot. That you needed to have this bunch of complex directory structures cos of the way java packages worked. for e.g. the test directories were parallel to the src directory, so they could be named with the same package name.

for a single file...i can just run java. but it would be nice to see a gradle setup that keeps simplicity and yet can have thousands of files and testcases organised in a nice structure.

secondly, it is nice that you have Jetty hooks. Can you also have CORS & proxy protocol ? its literally mandatory to have this stuff if ur deploying on any of the k8s based clouds.

e.g. https://stackoverflow.com/questions/73225314/accept-proxy-pr...

Re:Show HN: I finished v5 of a JVM framework I've spent spen... by matsemann on Monday October 03, 2022 @01:08PM (#33070454)
That's not a spring thing, but a java tools convention (having a src and test folder etc). Nothing stops you from doing it differently, but most tools work out of the box if you follow that setup. So better to just do it than having to fight with / configure every part of your pipeline.
Re:Show HN: I finished v5 of a JVM framework I've spent spen... by sandGorgon on Tuesday October 04, 2022 @08:51AM (#33079567)
im not disputing that. im wondering if javalin came with one out-of-the-box is all.
Re:Show HN: I finished v5 of a JVM framework I've spent spen... by tipsee on Monday October 03, 2022 @12:36PM (#33069887)
I'm not super sure what you're asking, but Javalin doesn't care at all about your directory structure. You can add it as a dependency to any existing gradle project you have, and import it like any other Java library (like java.lang.String).