r/JavaProgramming • u/javinpaul • 4h ago
I Joined 30+ Spring Boot Courses - Here Are My Top 10 Recommendations
r/JavaProgramming • u/javinpaul • 4h ago
r/JavaProgramming • u/javinpaul • 6h ago
r/JavaProgramming • u/uniVocity • 10h ago
I've used maven for years - it is easy to understand and is predictable until your project gets big and slows down BAD: once you have a bunch of separate libraries that depend on each other, you either shove them all into one giant monorepo or waste half your day running `mvn install` on library A just to test a change in library B.
The solution I found was switching to gradle - and I hated every minute of getting it to work but I have to admit it's day and night after you get your builds running with it.
Then came the next source of pain: every new project with gradle turns into a script adventure nobody wants to touch or maintain.
So I ended up building a reusable gradle `parent` project and just cleaned it up to share with everyone and I hope it helps everyone who is either suck in maven hell (slow) and gradle hell (get get unmanageably complex quickly)
The goal of what I built is simple that's how I use it: put your project folders next to `parent/`, keep your shared settings and versions in two files only (`reactor.properties` to configure the entire workpace across all modules and `libs.versions.toml` for all dependencies in one place too). Then leave each subproject with the LEAST amount of junk possible. This setup requires 2 small files per module instead of 1 but you need 1 line of text in each (until you add dependencies).
This started as a much simpler setup for my own needs but over time I piled in a bunch of other
stuff that kept annoying me:
- I have more than 100 modules (every one of these has its own git repository, and will be public open source jars eventually available on maven central). In many cases I want to only see the subset of modules that are dependencies of the thing I'm working on. So I added support for views: I can open the view as a separate project in IntelliJ and see only the 10 modules that I care about at the moment and forget the rest. So got this `createView` task that I can also clone across multiple repos (viewClone,viewSync,viewMerge) - every clone has a branch and I can change the modules without interfering on with state of the main 100 module build. The thing resolves conflicts rollbacks to ensure you won't end up with half-merged code. Works great if you run parallel coding agents too (each one gets a copy of the subtree it is working on). Tag+release can run from the view copy too so the workspace can remain happily with all modules on their main branches.
- There's support for named execution profiles - use when you want to create shortcuts to run only what you want without having to remember flags and custom commands to enable/disable/select specific tests or flags. You can also run tests by automatically skipping modules you don't want to rebuild and just grab the latest pre-built jars instead of recompiling them.
- I added support for releasing backports . It cross-compiles, runs tests on JDK 21, keeps Javadoc on JDK 27, and rewrites `-jdk21` pom coordinates.
- Since JPMS can be a pain. I also added support for 3 modes of shading non-modular dependencies without having to pollute your build with boilerplate: relocate non-modular jars into your module (shadeEmbed), bundle split-package jars (`shadeBundle`), or build fat jars.
- Lastly there are two old java tools I (and claude) ported into gradle tasks: `couplingUi` which is a small local browser viewer to spot weak/unused dependencies and also help trim `module-info.java`. There's also `render-docs` which reads a markdown "template" that pull code snippets from tests, adds links to other sections in other markdown files and ensures that things remain connected - it also rescues my edits whenever I forget and edit the rendered `README.md` directly instead of the template.
Everything runs through the Gradle wrapper with just a JDK installed - it also enforces TestNG or JUnit if you want.
I think it got good enough for sharing so posting it here in case it saves someone else a few headaches.
Cheers!
---
Unrelated and a bit of context on why this has so much multi-repo machinery in it: some of you might remember me from univocity-parsers. I had to step away from open source 6–7 years ago for personal reasons, and over the years since then I've built up a pretty big stack of modular libraries (~100 repos) that I'm finally getting ready to start open-sourcing. This `parent` setup is the first piece going out, since it's the exact infrastructure I'm using to build, test, and publish all of them without burning out. I wanted to have a bunch of stuff released for a while now but life kept getting in the way. This is hopefully the first of many contribuitions that I think are truly useful enough to share.
r/JavaProgramming • u/NiceLiterature4328 • 10h ago
Hey Java developers!
I've been experimenting with an idea: why should Java validation stop at syntax and structure?
"@NotNull", "@Email" and "@Size" are great, but what if we want to validate whether:
That's why I built SemVal4j, an open-source Java library that extends Jakarta Bean Validation with probabilistic semantic rules powered by Jev Decision Models.
SemanticValid({
SemanticRule(
id = "rating-consistency",
question = "Is the review consistent with its rating?",
property = "comment",
passAt = 0.85,
failBelow = 0.20
)
})
public record ProductReview(
Min(1) Max(5) int rating,
NotBlank String comment
) {}
You can keep using standard "@Valid".
Key features:
The goal isn't to replace deterministic validation, but to complement it when traditional constraints aren't enough.
I'm particularly interested in your thoughts on latency, reliability, and where semantic validation belongs in a Java architecture.
Would you use this in a real-world application?
GitHub: https://github.com/mohamedikbel/semval4j
Maven Central: https://central.sonatype.com/artifact/io.github.mohamedikbel/semval4j-spring-boot-starter
Feedback and contributions are welcome!
r/JavaProgramming • u/Iamvipersz • 15h ago
I just made my first version of a copy of Minecraft called alphavoxel. It's in its classic phase, in version Classic 1.0, and I want to continue this project in a group. I have Discord but no mic, so text chatting is the only option. There are gonna be massive updates later, but I need at least 2 people. If you want to participate, reply, and I will share the file with you
r/JavaProgramming • u/axishar • 17h ago
r/JavaProgramming • u/javinpaul • 21h ago
r/JavaProgramming • u/mananvpanchal • 1d ago
I am working on the framework that helps building event-driven java application. I am still working on edge cases. Here is the gist: https://gist.github.com/mananvpanchal/25aeb37b04da7399adbcde2b251e0bc5
I will appreciate if you spare some time to read it.
Thanks
r/JavaProgramming • u/javinpaul • 1d ago
r/JavaProgramming • u/javinpaul • 1d ago
r/JavaProgramming • u/ni241 • 2d ago
Hi, I have 17 years of experience in Java application development. I have worked as Tech lead, Engineering manager as well as solution architect.
If anyone knows about any relevant openings then please let me know.
Thanks
r/JavaProgramming • u/javinpaul • 2d ago
r/JavaProgramming • u/Knightlight1729 • 3d ago
r/JavaProgramming • u/thearjunreddy • 3d ago
I'm learning Java Full Stack Development and want to understand how important Spring Boot is for building real-world applications and getting a developer job.
r/JavaProgramming • u/EagleResponsible8752 • 4d ago
Testing LLM features in Spring AI is awkward: the same prompt can pass one run and fail the next, so a plain assertion is either flaky or meaningless.
spring-ai-eval-baseline treats each LLM test as a small experiment:
- `@EvalTest(runs = 10)` runs the method N times and records the pass rate with a confidence interval
- The pass rate is compared with a baseline file; the test fails only on a statistically significant drop (Fisher's exact test), with optional latency and cost limits
- `RecordingChatModel` wraps any Spring AI `ChatModel`: record real answers once, then replay them in CI, offline and for free
- A Markdown report you can post as a pull request comment
Example:
```java
u/EvalTest(runs = 10)
void refundAnswerMentionsTheLimit() {
assertThat(bot.answer("Can I get a refund?")).contains("30 days");
}
```
I use it in one of my own projects: a regression test runs an LLM-based detector on a synthetic test set and fails CI if a prompt change makes detection worse.
Maven Central: `io.github.rrezartprebreza:eval-junit:0.1.0` (MIT, Java 21, Spring AI 1.0)
Repo: https://github.com/rrezartprebreza/spring-ai-eval-baseline
I'd like feedback on the API and the statistics. What would you need before using something like this at work?
r/JavaProgramming • u/archerterry8445 • 4d ago
Salut, on a commencé les Web Services notamment JAX RS la semaine dernière et notre prof nous a demandé de mapper des méthodes CRUD créés dans DAO (architecture MVC) sur une classe nommée Produit. Les données se stockent pour le moment dans des listes. Maintenant je ne sais pas comment faire le mappage avec l'objet car il nous a dit de prendre en paramètre l'objet, pas les attributs quoi....sauf l'id au niveau de supprimer
Là je suis perdu, j'aimerais avoir de l'aide, des ressources et conseils... merci
r/JavaProgramming • u/javinpaul • 4d ago
r/JavaProgramming • u/tonystrakmarvel332 • 5d ago
I'm working on a Java application that performs database operations and handles multiple user requests.
Initially, everything works fine, but after running for a few hours, response times increase significantly.
There are no major errors in the logs.
For experienced Java developers, what would you investigate first?
Would you check memory usage, garbage collection, database connections, or thread management?
r/JavaProgramming • u/OrneryTemperature397 • 5d ago
I am thinking to start again my back-end journey
So if anyone have already enrolled any of these ...
Suggest me
r/JavaProgramming • u/No_Bed_7062 • 5d ago
r/JavaProgramming • u/No_History_6527 • 5d ago
How is Teslusko's Java Full stack udemy course and which one to choose the highest rated one or Industry ready one?
If you have any other suggestion or methods to learn java full stack please provide it.
If you have any good course or free resource, please help with that too.
r/JavaProgramming • u/javinpaul • 6d ago
r/JavaProgramming • u/No_Use3178 • 7d ago
I'm planning to build a Java library. What's one feature or functionality you wish existed in Java that would make programming easier? I'd love to hear your ideas!