forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incubating Maven resolver: do not load the workspace when the origina…
…l resolver isn't aware of it, switch to choose between blocking and non-blocking dependency processor, clean-up
- Loading branch information
Alexey Loubyansky
committed
Nov 25, 2024
1 parent
74a523c
commit 30f7864
Showing
7 changed files
with
380 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../src/main/java/io/quarkus/bootstrap/resolver/maven/BlockingModelResolutionTaskRunner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.quarkus.bootstrap.resolver.maven; | ||
|
||
/** | ||
* Blocking implementation of the {@link ModelResolutionTaskRunner}. | ||
* Each call to {@link #run(ModelResolutionTask)} will block until the task has finished running. | ||
* {@link #waitForCompletion()} is a no-op in this implementation. | ||
*/ | ||
class BlockingModelResolutionTaskRunner implements ModelResolutionTaskRunner { | ||
|
||
static BlockingModelResolutionTaskRunner getInstance() { | ||
return new BlockingModelResolutionTaskRunner(); | ||
} | ||
|
||
@Override | ||
public void run(ModelResolutionTask task) { | ||
task.run(); | ||
} | ||
|
||
@Override | ||
public void waitForCompletion() { | ||
} | ||
} |
Oops, something went wrong.