Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add namespace directive for gradle 8.0 compatibility #25

Merged
merged 3 commits into from
Dec 28, 2023

Conversation

derrickgw
Copy link
Contributor

Using gradle 8.0 fails unless there is a namespace directive in the build.gradle file. This will allow project that use this library to use gradle >= 8.0.

derrickgw added a commit to OurDataMine/flutter_notification_plugin that referenced this pull request Sep 11, 2023
Waiting for receive_intent to update build.gradle files.
See daadu/receive_intent#25
Gradle 7 gives the following warning:

The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.5/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_25a2ym3sea7y143gert29dq0p$_run_closure1$_closure2.doCall(/home/derrick/.pub-cache/hosted/pub.dev/receive_intent-0.2.4/android/build.gradle:8)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

The link states:
The jcenter() convenience method is now deprecated

JFrog announced the sunset of the JCenter repository in February 2021. Many Gradle builds rely on JCenter for project dependencies.

No new packages or versions are published to JCenter, but JFrog says they will keep JCenter running in a read-only state indefinitely. We recommend that you consider using mavenCentral(), google() or a private maven repository instead.

Gradle emits a deprecation warning when jcenter() is used as a repository and this method is scheduled to be removed in Gradle 8.0.
@daadu daadu changed the title Add namespace directive for gradle 8.0 compatibility feat: add namespace directive for gradle 8.0 compatibility Dec 28, 2023
@daadu daadu merged commit 7884309 into daadu:master Dec 28, 2023
1 check passed
@daadu
Copy link
Owner

daadu commented Dec 28, 2023

@derrickgw this changes have landed on pub.dev with v0.2.5

Thanks for the contribution. Check yourself in the README file!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants