Fix grab test
This commit is contained in:
parent
df476bed1f
commit
e48ddaeb99
|
@ -268,7 +268,7 @@ public class AetherGrapeEngine implements GrapeEngine {
|
|||
builder.setProxy(this.proxySelector.getProxy(repository));
|
||||
repository = builder.build();
|
||||
}
|
||||
this.repositories.add(repository);
|
||||
this.repositories.add(0, repository);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -56,6 +56,7 @@ public class GrabCommandIntegrationTests {
|
|||
String output = this.cli.grab("grab.groovy", "--autoconfigure=false");
|
||||
assertTrue(new File("target/repository/net/sf/jopt-simple/jopt-simple")
|
||||
.isDirectory());
|
||||
// Should be resolved from local repository cache
|
||||
assertTrue(output.contains("Downloading: file:"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue