Replace deprecated calls to project.configurations.add and project.tasks.add with create