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.
Make SplitPackageProcessor configurable, add build item that allows e…
…xtension to skip validation
- Loading branch information
Showing
3 changed files
with
99 additions
and
0 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
30 changes: 30 additions & 0 deletions
30
...s/arc/deployment/src/main/java/io/quarkus/arc/deployment/IgnoreSplitPackageBuildItem.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,30 @@ | ||
package io.quarkus.arc.deployment; | ||
|
||
import java.util.Collection; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
|
||
/** | ||
* Allows extensions to programmatically exclude certain packages from split package detection which is executed by | ||
* {@link SplitPackageProcessor}. Extensions are encouraged to solve split package issues and this build item should | ||
* be used primarily as temporary workaround. | ||
* <p> | ||
* A package string representation can be: | ||
* <ul> | ||
* <li>a full name of the package, i.e. {@code org.acme.foo}</li> | ||
* <li>a package name with suffix {@code .*}, i.e. {@code org.acme.*}, which matches a package that starts with provided | ||
* value</li> | ||
* | ||
*/ | ||
public final class IgnoreSplitPackageBuildItem extends MultiBuildItem { | ||
|
||
private Collection<String> excludedPackages; | ||
|
||
public IgnoreSplitPackageBuildItem(Collection<String> excludedPackages) { | ||
this.excludedPackages = excludedPackages; | ||
} | ||
|
||
public Collection<String> getExcludedPackages() { | ||
return excludedPackages; | ||
} | ||
} |
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