vifeng / TicketToTheMoon

WIP: Ticket office website. back office for venues to operate their shows and front office to buy tickets for the public.
1 stars 0 forks source link

gradle Project.getConvention() method has been deprecated #29

Open vifeng opened 7 months ago

vifeng commented 7 months ago

Issue: gradle flywayinfo --warning-mode all

Error Trace:

executing gradlew instead of gradle

> Task :flywayInfo FAILED
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
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.1/userguide/upgrading_version_8.html#deprecated_access_to_conventions
The org.gradle.api.plugins.JavaPluginConvention 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.1/userguide/upgrading_version_8.html#java_convention_deprecation

Answer: https://stackoverflow.com/questions/76777878/project-getconvention-method-has-been-deprecated or wait for next gradle version, it should be fixed. or downgrade...

vifeng commented 7 months ago

to test the downgrade we can use the wrapper ./gradle/wrapper/gradle-wrapper.properties and change the version distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip