public void resolve(TaskDependencyResolveContext context) {
   for (MavenArtifact mavenArtifact : DefaultMavenArtifactSet.this) {
     if (mavenArtifact instanceof Buildable) {
       context.add(mavenArtifact);
     }
   }
 }
 public void resolve(TaskDependencyResolveContext context) {
   for (IvyArtifact ivyArtifact : DefaultIvyArtifactSet.this) {
     context.add(ivyArtifact);
   }
 }