Skip to content

Commit

Permalink
Merge pull request #5749 from wborn/index-jars-only
Browse files Browse the repository at this point in the history
Index only JAR artifacts in IndexerMojo
  • Loading branch information
pkriens authored Aug 17, 2023
2 parents d048057 + 46a8142 commit 13507b0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ public void execute() throws MojoExecutionException, MojoFailureException {
IO.mkdirs(outputFile.getParentFile());
for (Entry<File, ArtifactResult> entry : dependencies.entrySet()) {
File file = entry.getKey();

if (!"jar".equals(entry.getValue().getArtifact().getExtension())) {
logger.debug("Skipping: {}", file);
continue;
}

ResourceBuilder resourceBuilder = new ResourceBuilder();
resourceBuilder.addFile(entry.getKey(), repositoryURLResolver.resolver(file, entry.getValue()));

Expand Down

0 comments on commit 13507b0

Please sign in to comment.