From 48c4db0b579ddd7966bf85b0a90cffcab3fb29c1 Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Fri, 4 Mar 2011 23:15:05 +0800 Subject: [PATCH] HHH-5707 Deprecated DomainObjectCollection.allObjects(), TaskCollection.allTasks() and PluginCollection.allPlugins(). These are replaced by DomainObjectCollection.all(). --- .../hibernate/build/gradle/upload/AuthenticationHandler.java | 2 +- .../build/gradle/upload/UploadAuthenticationManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/java/org/hibernate/build/gradle/upload/AuthenticationHandler.java b/buildSrc/src/main/java/org/hibernate/build/gradle/upload/AuthenticationHandler.java index c9e0202443..955caf39d2 100644 --- a/buildSrc/src/main/java/org/hibernate/build/gradle/upload/AuthenticationHandler.java +++ b/buildSrc/src/main/java/org/hibernate/build/gradle/upload/AuthenticationHandler.java @@ -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() { public void execute(MavenDeployer deployer) { final RemoteRepository repository = deployer.getRepository(); diff --git a/buildSrc/src/main/java/org/hibernate/build/gradle/upload/UploadAuthenticationManager.java b/buildSrc/src/main/java/org/hibernate/build/gradle/upload/UploadAuthenticationManager.java index 73d29a1c10..2c8909fece 100644 --- a/buildSrc/src/main/java/org/hibernate/build/gradle/upload/UploadAuthenticationManager.java +++ b/buildSrc/src/main/java/org/hibernate/build/gradle/upload/UploadAuthenticationManager.java @@ -43,7 +43,7 @@ public class UploadAuthenticationManager implements Plugin { // code for just that. final AuthenticationProviderRegistry registry = new AuthenticationProviderRegistry(); - project.getTasks().withType( Upload.class ).allTasks( + project.getTasks().withType( Upload.class ).all( new Action() { @Override public void execute(final Upload uploadTask) {