diachedelic/capacitor-blob-writer

jcenter() depreciated - update the gradle.build with mavenCentral() required?

tollhaus opened this issue · 1 comments

I just got this Error building an App with the capacitor-write-blob plugin:

> Configure project :capacitor-blob-writer
Build file '/Users/appdeveloper/git/scs-ma-portal/node_modules/capacitor-blob-writer/android/build.gradle': line 4
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.2/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_5tmrhqd09f8dzjlcsdrn6qzta$_run_closure1$_closure2.doCall(/Users/appdeveloper/git/scs-ma-portal/node_modules/capacitor-blob-writer/android/build.gradle:4)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

I replaced jcenter() with mavenCentral() and it seems to work.
Not sure if this is already changed in the actual version and if its the right way to do it.
Please take a look.
Thank you,
martin.

Thanks. Fixed in v1.1.17.