HHH-5707 Deprecated DomainObjectCollection.allObjects(), TaskCollection.allTasks() and PluginCollection.allPlugins(). These are replaced by DomainObjectCollection.all().

This commit is contained in:
Strong Liu 2011-03-04 23:15:05 +08:00
parent 7243d04541
commit 48c4db0b57
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public class AuthenticationHandler extends DefaultTask {
@TaskAction
public void configureUploadAuthentication() {
// todo : unfortunately I have no idea how to apply this to non MavenDeployer-type repos...
uploadTask.getRepositories().withType( MavenDeployer.class ).allObjects(
uploadTask.getRepositories().withType( MavenDeployer.class ).all(
new Action<MavenDeployer>() {
public void execute(MavenDeployer deployer) {
final RemoteRepository repository = deployer.getRepository();

View File

@ -43,7 +43,7 @@ public class UploadAuthenticationManager implements Plugin<Project> {
// code for just that.
final AuthenticationProviderRegistry registry = new AuthenticationProviderRegistry();
project.getTasks().withType( Upload.class ).allTasks(
project.getTasks().withType( Upload.class ).all(
new Action<Upload>() {
@Override
public void execute(final Upload uploadTask) {