britannio / in_app_review

A Flutter plugin for showing the In-App Review/System Rating pop up on Android, IOS, and MacOS. It makes it easy for users to rate your app.
327 stars 82 forks source link

The `org.gradle.util.WrapUtil` type has been deprecated. #95

Open bartekpacia opened 1 year ago

bartekpacia commented 1 year ago

I have a Flutter app depending on this plugin. When I build it for Android, I get a deprecation warning:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

$ ./gradlew :app:assembleDebug --warning-mode all

> Configure project :in_app_review
The org.gradle.util.WrapUtil type 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/userguide/upgrading_version_7.html#org_gradle_util_reports_deprecations
        at build_124679x1y7mk03whwzsi9kez1.run(/Users/bartek/.pub-cache/hosted/pub.dev/in_app_review-2.0.6/android/build.gradle:25)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
The org.gradle.api.plugins.Convention type 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/userguide/upgrading_version_8.html#deprecated_access_to_conventions
The AbstractCompile.destinationDir property has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the destinationDirectory property instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.2/userguide/upgrading_version_7.html#compile_task_wiring

The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.
If the parent project does not need the plugin, add 'apply false' to the plugin line.
See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl
The Kotlin plugin was loaded in the following projects: ':location', ':patrol'

BUILD SUCCESSFUL in 4s
424 actionable tasks: 4 executed, 420 up-to-date