r/java • u/Mirko_ddd • May 12 '26
The piece of software you discovered and can t do without
Dear colleagues, (almost) every day someone creates a project and shares it here.
Beautiful projects, niche projects, simple side projects, and sometimes real gems.
I don't have a project to share today, but I'd like you to tell me about that gem you found here in this sub (or maybe a non-mainstream project you stumbled upon on GitHub) that you can't live without, that improved your workflow, or that solved a big problem.
It would be ideal if the project wasn't yours, but if it is, please specify so and provide a brief description. Today's goal is to discover how to improve as engineers and do a little show-and-tell to keep us updated and discover cool things.
What do you think? Go wild!
PS: of course, a piece of Java software.
44
u/le_bravery May 12 '26
In the Java world: jqwik.
With property based tests, I’ve found bugs I never would have found without it.
Also with the new world of LLMs, you will get better coverage when you force your LLM to write property based tests.
38
u/_predator_ May 12 '26
21
u/OddEstimate1627 May 12 '26
48
u/martinhaeusler May 12 '26
Jackson. It's just that good at handling JSON.
11
u/vladmihalceacom May 13 '26
Since I built it in 2019, I've been using Hypersistence Optimizer on every Java project I worked on. I'm the first customer and I'll keep on improving it for as long as there will be Hibernate.
5
u/holybuttholian May 13 '26
Jilt: https://github.com/skinny85/jilt
With this you can build immutable objects with the type safety of a constructor, but with the readability of a builder. Yeah probably not so good for heavy traffic services, but it does remove some painpoints from records and such.
5
u/demchaav May 12 '26
Full disclosure: this is my own project, so feel free to ignore it if self-built tools are not what you had in mind.
I’m working on GraphCompose, a Java-first document layout engine for PDFs.
The thing I wanted to avoid was the usual “manually calculate coordinates and draw everything with PDFBox” pain. Instead, the library lets you describe a document semantically: modules, sections, rows, tables, themes, layers, templates, etc. The engine then handles layout, pagination and rendering.
PDFBox is used as the current backend, but the architecture keeps the document model and rendering layer separate, so in theory the same idea could support other outputs later.
Still early, still evolving, but it has become one of those tools I personally can’t stop improving.
GitHub: https://github.com/DemchaAV/GraphCompose
11
u/jevring May 12 '26
Lombok. As much as I hate its overuse, it's really good at making beans.
54
u/jasie3k May 12 '26
Not necessarily a piece of Java software, but SDKMan is one of my first installs on a new workstation.
15
u/fuzzmonkey35 May 12 '26
ImageJ was on every machine I had running automated electrical test to inspect saved microscope images, run some measurements, do a little post-image-processing. Great tool !
10
u/chabala May 12 '26
I can live without a lot, but these are lesser known useful projects:
This plugin will reorder a Maven POM's elements into a standard ordering. (Nominally the 'official' standard ordering, but did you even know there's a standard? https://maven.apache.org/developers/conventions/code.html#POM_Code_Convention ) This was very useful to me as a first step to help merge two branches that had been allowed to develop independently for a number of years.
Easily enforce a consistent license header/disclaimer across a whole project: fails the build if it's missing, and will generate the missing header for you if you like.
Even more niche, this will generate sitemap.xml files (for search engine optimization) for Maven project sites.
9
u/pgris May 12 '26
Forbidden -Apis maven plugin that does not let you call problematic methods, like new String(byteArray) without setting a charset and stuff like that
NullAway maven plugin that make java (almost) null safe, compatible with JSpecify. Ok, null safer, not kotlin level but better than nothing
9
u/TheStrangeDarkOne May 13 '26
MapStruct. It is the perfect mapping libraries with many additional hooks for all kinds of corner cases. It truly makes proper architectures like Onion or Hexagonal a pleasure to work with and keeps your domain contexts and modules separated.
Such a Godsent.
4
u/pjmlp May 12 '26
Eclipse (at work) and Netbeans (at home), alongside Maven.
12
u/inheritedburrp May 12 '26
Clipboard manager. CMD+shift+v and I have a history of all the things I copied.
17
u/Admirable-Avocado888 May 12 '26
Gitea. An absolute gem for self hosting a git server.
Virtual threads. Now I can write code that switches between io and cpu without battling shitty keywords?? Fuck me this is great.
Ray: cool framework for scaling ml inference
0
u/robilco May 12 '26
Jumpcut on Mac for clipboard history
4
u/supremeO11 May 12 '26
OxyJen - it's an open-source Java framework to make deterministic Al pipelines in a graph-node structure. Has openai support, what makes it deterministic is it's resilience features like jitter, retry cap backoff strategy etc. Schema enforcement on output plus IIm output directly maps to java classes/records. Has Tools API to create your own tools with built in classes with safety (sandbox, allowlist/ denylist), has 2 build in tools.
Currently working on v0.5 to support Directed Acyclic Graph with concurrency, parallelism and easy DSL and fault tolerant nodes with failure aware edges. Can handle nodes failing mid-graph. Will add a state persistence layer and transition layer once I'm done with the graph module. It's a solo project I started when I got inspired by langchain, but it mostly focuses on reliable execution rather than feature breadth. It's still very early so yeah, looking out for contributions and feedback. It's my own project, feel free to ignore if u're not looking for it🙂
2
u/vips7L May 16 '26
Ebean. It avoids all the nasty complexity of Hibernate while also still being an ORM and making the common things really easy.
2
u/Anaq42 May 19 '26
Maven spotless plugin - especially when working in big teams
1
u/tonylook May 14 '26
Cucumber and SerenityBDD. These 2 are awesome together. Cucumber allows you to write tests in a BDD format and SerenityBDD will generate a living documentation out of these BDD tests
1
u/nlisker May 19 '26
https://github.com/weld/weld-testing
Unit tests with CDI injections. Almost as lightweight as standard unit tests, much more lightweight than starting a server. Eliminates the need for mocking (or at least reduces it greatly).
1
u/nonFungibleHuman May 12 '26
Guava
0
u/Z3WZ May 12 '26
CopyQ