Skip to content

Commit

Permalink
GradleLintPlugin: change min version for modern report output
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Sep 14, 2021
1 parent 04c2d80 commit 2942d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GradleLintPlugin implements Plugin<Project> {
LintRuleRegistry.classLoader = getClass().classLoader

// TODO: we need to retire this once we have folks in Gradle 7.x+
if (GradleKt.versionCompareTo(project.gradle, '7.0') >= 0) {
if (GradleKt.versionCompareTo(project.gradle, '7.1') >= 0) {
new Gradle7AndHigherLintPluginTaskConfigurer().configure(project)
} else if (GradleKt.versionCompareTo(project.gradle, '5.0') >= 0) {
new GradleBetween5And7LintPluginTaskConfigurer().configure(project)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class GradleLintReportTask extends DefaultTask implements VerificationTask, Repo
reports.enabled.each { Report r ->
ReportWriter writer = null

if (GradleKt.versionCompareTo(project.gradle, '7.0') >= 0) {
if (GradleKt.versionCompareTo(project.gradle, '7.1') >= 0) {
switch (r.name) {
case 'xml': writer = new XmlReportWriter(outputFile: r.outputLocation.get().asFile); break
case 'html': writer = new HtmlReportWriter(outputFile: r.outputLocation.get().asFile); break
Expand Down

0 comments on commit 2942d7b

Please sign in to comment.