-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Filtering] Add support for filtering packages like Maven plugin #53
Conversation
This adds package filters similar to how the Maven plugin filters in its `<packages>` block. This supports ant-like patterns similar to how patterns filter.
import java.util.function.Predicate | ||
|
||
@Suppress("UNCHECKED_CAST") | ||
sealed class JavaIdentifierNamePatternFilterableBase<T, SELF> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be reused for the classes
block in a follow-up.
} | ||
} | ||
|
||
fun setIncludes(includes: Iterable<String>): SELF { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these methods are intending to mirror https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/util/PatternFilterable.html
This adds package filters similar to how the Maven plugin filters in its
<packages>
block. This supports ant-like patterns similar to how patterns filter.Partial implementation of #16.