xvik / gradle-quality-plugin

Gradle quality plugin for Java and Groovy
http://xvik.github.io/gradle-quality-plugin
MIT License
133 stars 11 forks source link

checkstyleMain task is failing with Gradle 8.0 upgrade #77

Closed cdlischynski closed 1 year ago

cdlischynski commented 1 year ago

Looks like it may have something to do with the getOutputLocation return type being changed from Provider to Property. https://docs.gradle.org/current/userguide/upgrading_version_7.html#report_getoutputlocation_return_type_changed_from_provider_to_property

Here is my stack trace:

Caused by: java.lang.NoSuchMethodError: 'org.gradle.api.provider.Provider org.gradle.api.reporting.Report.getOutputLocation()'
        at ru.vyarus.gradle.plugin.quality.report.ReportUtils.getReportFile(ReportUtils.groovy:115)
        at ru.vyarus.gradle.plugin.quality.report.ReportUtils$getReportFile.call(Unknown Source)
        at ru.vyarus.gradle.plugin.quality.report.CheckstyleReporter.report(CheckstyleReporter.groovy:27)
        at ru.vyarus.gradle.plugin.quality.report.CheckstyleReporter.report(CheckstyleReporter.groovy)
        at ru.vyarus.gradle.plugin.quality.QualityPlugin$_applyReporter_closure10.doCall(QualityPlugin.groovy:417)

https://github.com/xvik/gradle-quality-plugin/blob/master/src/main/groovy/ru/vyarus/gradle/plugin/quality/report/ReportUtils.groovy#L115

xvik commented 1 year ago

Thank you! I'll look

xvik commented 1 year ago

released 4.9.0