It works now, the Spring dependencies are compile-scoped