Skip to content

Commit

Permalink
Make sure our CachingProjectBuilder is used, fixes #218
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 16, 2020
1 parent b6cc70e commit 99b41fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Expand Up @@ -75,6 +75,7 @@
import org.eclipse.aether.repository.WorkspaceRepository;
import org.eclipse.aether.resolution.ArtifactRequest;
import org.eclipse.aether.resolution.ArtifactResult;
import org.eclipse.sisu.Priority;
import org.eclipse.sisu.Typed;

/**
Expand All @@ -86,6 +87,7 @@
@Named
@Singleton
@Typed(ProjectBuilder.class)
@Priority(10)
public class CachingProjectBuilder
implements ProjectBuilder {

Expand Down
Expand Up @@ -83,7 +83,7 @@ void upgrade() throws IOException, InterruptedException {
{
final TestClientOutput output = new TestClientOutput();
cl.execute(output, "clean", "install", "-e", "-B", "-ntp")
.assertFailure(); // Switch back to assertSuccess() once https://github.com/mvndaemon/mvnd/issues/218 is fixed
.assertSuccess();
}
Assertions.assertThat(registry.getAll().size()).isEqualTo(1);

Expand Down
Expand Up @@ -77,7 +77,7 @@ void upgrade() throws IOException, InterruptedException {
{
final TestClientOutput output = new TestClientOutput();
cl.execute(output, "clean", "install", "-e")
.assertFailure(); // Switch back to assertSuccess() once https://github.com/mvndaemon/mvnd/issues/218 is fixed
.assertSuccess();
}
Assertions.assertThat(registry.getAll().size()).isEqualTo(1);

Expand Down

0 comments on commit 99b41fc

Please sign in to comment.