aaschmid / gradle-cpd-plugin

Gradle plugin to find duplicate code using PMDs copy/paste detection (= CPD).
Apache License 2.0
95 stars 12 forks source link

Deprecation: project.getConvention() #68

Open C-Otto opened 1 year ago

C-Otto commented 1 year ago

With Gradle 8.2.1 and --warning-mode all --stacktrace I get:

The Project.getConvention() method has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#deprecated_access_to_conventions
        at org.gradle.api.internal.project.DefaultProject.getConvention(DefaultProject.java:593)
        at de.aaschmid.gradle.plugins.cpd.CpdPlugin.lambda$null$8(CpdPlugin.java:141)
danilovesky commented 1 year ago

Came to report the same issue. Just in case, here is Gradle docs link with deprecation details: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#deprecated_access_to_conventions

aaschmid commented 1 year ago

Thanks for reporting. I would appreciate a PR as I don't know when I will have time to concentrated work on this the next weeks.