Skip to content

Commit

Permalink
Fix gradle Jacoco issues
Browse files Browse the repository at this point in the history
Fixes #16323
  • Loading branch information
stuartwdouglas committed Apr 7, 2021
1 parent ecb6be6 commit beb0db6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ public byte[] apply(String className, byte[] bytes) {
}
}
} else if (BuildToolHelper.isGradleProject(targetdir.toPath())) {
QuarkusModel model = BuildToolHelper.enableGradleAppModelForTest(targetdir.toPath());
//this seems counter productive, but we want the dev mode model and not the test model
//as the test model will include the test classes that we don't want in the report
QuarkusModel model = BuildToolHelper.enableGradleAppModelForDevMode(targetdir.toPath());
for (WorkspaceModule i : model.getWorkspace().getAllModules()) {
info.savedData.add(new File(i.getBuildDir(), config.dataFile).getAbsolutePath());
for (File src : i.getSourceSourceSet().getSourceDirectories()) {
sources.add(src.getAbsolutePath());
}
Expand Down

0 comments on commit beb0db6

Please sign in to comment.