HHH-5707 Deprecated DomainObjectCollection.allObjects(), TaskCollection.allTasks() and PluginCollection.allPlugins(). These are replaced by DomainObjectCollection.all().
This commit is contained in:
parent
7243d04541
commit
48c4db0b57
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue