lottie-react-native: Gradle 7: `unable to resolve class MavenDeployment`
Description
Just upgraded to Gradle Plugin 7.0.0 and Gradle 7.0.2 via Android Studio’s prompt and now running into this error on build:
node_modules/lottie-react-native/src/android/gradle-maven-push.gradle': 46: unable to resolve class MavenDeployment
@ line 46, column 26.
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
It appears that MavenDeployment was deprecated in Gradle 6.3 and removed entirely in Gradle 7 so a new deployment config needs to be used.
Steps to Reproduce
- Upgrade to Gradle 7.
- Try to build latest
lottie-react-native.
Expected behavior: Builds fine.
Actual behavior: unable to resolve class MavenDeployment
Versions
"lottie-react-native": "4.0.3"
gradle 7.0.2
gradle plugin 7.0.0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 31
- Comments: 20 (4 by maintainers)
when this fix will be released??
Yes, the corresponding pull request has been already merged and we will release a new version as soon as possible.
I split the migration into 3 PRs the last one depending on the previous two: https://github.com/lottie-react-native/lottie-react-native/pull/797 https://github.com/lottie-react-native/lottie-react-native/pull/798 https://github.com/lottie-react-native/lottie-react-native/pull/799
For testing purposes (or temporary workaround please use: https://github.com/andresesfm/lottie-react-native/tree/gradle_7_full_migration) that includes the three PRs merged into one branch
We are planning a new release before end of next week if everything goes OK.
@zienna @mayconline @rachitmishra @Gavsum @RoderickMastrolinardo @dongdyang
Version v4.1.0 has been released with the migration for lottie-android and Gradle. In my experience, it might raise some build issues so please, give it a try and let me know if it worked for you, I’ll work on a patch if needed.
Any updates here? can we have this patch in a separate release please? it is blocking us from using the latest gradle for android
hi any update on the release?
thank you for all the good work @emilioicai 🙌🏼
Any updates about when this is gonna be released?
Great work @emilioicai, so far so good! 🚀
@emilioicai has everything gone OK with the release?