flow-build-info.json generated in wrong directory

Das anyone else have the problem that tje flow-build-info.json isn’t generated in the correct folder when building the application with gradle and spring boot? According to documentation it should be in BOOT-INF/classes/META-INF/VAADIN/config/ but it’s in META-INF/VAADIN/config/ and therefore not picked up by the production mode check. Setting the vaadin.productionmode environment variable works fine.