Hey guys, I think I just have a fundamental misunderstanding of gradle and docker.
I have this codebase at work that builds with gradle and sets up a docker container locally.
I was having trouble with the gradle build and it was failing the build. I reached out to another developer and they mentioned that I need to build the project with Java 11 (I had Java 22). I was able to build successfully then by doing
I'm confused though because shouldn't docker be handling the dependencies (separate from a package manager, I know) and help build the project regardless of what version certain dependencies like Java are on my system? I tried explaining my question to them and they basically said that gradle is separate from docker which I kind of understand but it just doesn't make sense to me why I have to have specific depencency versions on my machine when it builds a docker container?