protected boolean isExcluded()

in src/main/java/org/apache/maven/plugins/gpg/FilesCollector.java [133:146]


    protected boolean isExcluded(Artifact artifact) {
        final Path projectBasePath = project.getBasedir().toPath();
        final Path artifactPath = artifact.getFile().toPath();
        final String relativeArtifactPath =
                projectBasePath.relativize(artifactPath).toString();

        for (String exclude : excludes) {
            if (SelectorUtils.matchPath(exclude, relativeArtifactPath)) {
                return true;
            }
        }

        return false;
    }