From 9d987abb6464a854e233854d1d4ed7d9a373e5d7 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Mon, 10 May 2021 14:15:18 +1000 Subject: [PATCH] Jacoco does not report on other modules Fixes #17086 --- .../java/io/quarkus/jacoco/deployment/JacocoProcessor.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test-framework/jacoco/deployment/src/main/java/io/quarkus/jacoco/deployment/JacocoProcessor.java b/test-framework/jacoco/deployment/src/main/java/io/quarkus/jacoco/deployment/JacocoProcessor.java index bdbc6b480c63b..e040fce63c2f5 100644 --- a/test-framework/jacoco/deployment/src/main/java/io/quarkus/jacoco/deployment/JacocoProcessor.java +++ b/test-framework/jacoco/deployment/src/main/java/io/quarkus/jacoco/deployment/JacocoProcessor.java @@ -14,7 +14,6 @@ import org.codehaus.plexus.util.StringUtils; import org.jacoco.core.instr.Instrumenter; import org.jacoco.core.runtime.OfflineInstrumentationAccessGenerator; -import org.jacoco.report.MultiSourceFileLocator; import org.jboss.jandex.ClassInfo; import io.quarkus.bootstrap.model.AppArtifactKey; @@ -103,11 +102,10 @@ public byte[] apply(String className, byte[] bytes) { info.classFiles = classes; Set sources = new HashSet<>(); - MultiSourceFileLocator sourceFileLocator = new MultiSourceFileLocator(4); if (BuildToolHelper.isMavenProject(targetdir.toPath())) { Set runtimeDeps = new HashSet<>(); for (AppDependency i : curateOutcomeBuildItem.getEffectiveModel().getUserDependencies()) { - runtimeDeps.add(i.getArtifact().getKey()); + runtimeDeps.add(new AppArtifactKey(i.getArtifact().getGroupId(), i.getArtifact().getArtifactId())); } LocalProject project = LocalProject.loadWorkspace(targetdir.toPath()); runtimeDeps.add(project.getKey());