Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkstyleMain task is failing with Gradle 8.0 upgrade #77

Closed
cdlischynski opened this issue Feb 13, 2023 · 2 comments
Closed

checkstyleMain task is failing with Gradle 8.0 upgrade #77

cdlischynski opened this issue Feb 13, 2023 · 2 comments

Comments

@cdlischynski
Copy link

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
Copy link
Owner

xvik commented Feb 14, 2023

Thank you! I'll look

xvik added a commit that referenced this issue Feb 15, 2023
@xvik
Copy link
Owner

xvik commented Feb 18, 2023

released 4.9.0

@xvik xvik closed this as completed Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants