Skip to content

Commit

Permalink
Replace deprecated Report.enabled property (#1839)
Browse files Browse the repository at this point in the history
Replace deprecated Report.enabled property
  • Loading branch information
fawind authored Jul 22, 2021
1 parent 10a4664 commit fdb11cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-1839.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: fix
fix:
description: Replace deprecated Report.enabled property
links:
- https://github.com/palantir/gradle-baseline/pull/1839
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void configurePluginsForArtifacts(Project project) {
}

project.getRootProject().allprojects(proj -> proj.getTasks().withType(Test.class, test -> {
test.getReports().getHtml().setEnabled(true);
test.getReports().getHtml().getRequired().set(true);
test.getReports().getHtml().setDestination(junitPath(circleArtifactsDir, test.getPath()));
}));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public final class CheckstyleReportHandler extends ReportHandler<Checkstyle> {
@Override
public void configureTask(Checkstyle task) {
// Ensure XML output is enabled
task.getReports().findByName("xml").setEnabled(true);
task.getReports().findByName("xml").getRequired().set(true);
}

@Override
Expand Down

0 comments on commit fdb11cb

Please sign in to comment.