The graphhopper-reader-osm module no longer exists. All of its functionality is now in core (also see here: Move the reader-osm module into core by easbar · Pull Request #2298 · graphhopper/graphhopper · GitHub), so you can use core 6.2 for what you are doing.
Using 6.2 your code should look something like this:
GraphHopper graphHopper = new GraphHopper().init(
new GraphHopperConfig().
putObject("datareader.file", "path to osm file").
putObject("graph.location", "path to graphhopper folder (not osm file location!)").
putObject("prepare.min_network_size", 200). // skip this unless you know what you are doing, 200 is the default anyway
putObject("import.osm.ignored_highways", ""). // if you are only using car you can ignore paths, tracks etc. here, take a look at the documentation in `config-example.yml`
setProfiles(Arrays.asList(
new Profile("car").setVehicle("car").setWeighting("fastest")
))).
hopper.importOrLoad();