Use injected field instead of project.getBuild().getResources()