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

Use maven in android gradle is deprecated #64

Open
emami7495 opened this issue Aug 6, 2022 · 8 comments
Open

Use maven in android gradle is deprecated #64

emami7495 opened this issue Aug 6, 2022 · 8 comments

Comments

@emami7495
Copy link

Hi i recently add this package to my project but when i want to run android i faced with this issue :
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
that refers you must replace maven in android gradle with an alternative

@ghost
Copy link

ghost commented Aug 6, 2022 via email

@AndoInvest
Copy link

Добрый день!Ваше письмо получено и зарегистрировано под уникальным номером № 18635050. Ответ обязательно будет предоставлен, пожалуйста, ожидайте.Просим Вас не отправлять повторное письмо по данному вопросу - оно будет считаться новой заявкой и может быть обработано позднее.Помощь сервиса: https://yandex.ru/support/direct/?from=email--С уважением,Отдел клиентского сервисател.: 8 800 234-24-80 (звонок из регионов России бесплатный)тел.: +7 495 739-37-77&nbsp06.08.2022, 12:00, "Mostafa Emami" @.>: Hi i recently add this package to my project but when i want to run android i faced with this issue : Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. that refers you must replace maven in android gradle with an alternative —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

Такая же проблема

@ghost
Copy link

ghost commented Aug 10, 2022

Знаем о этой ситуации, активно занимаемся ее решением.
Увы, но это займет некоторое время.
В будущем обновлении этот issue будет решен.


We are aware of this situation and are actively working to resolve it as quickly as possible.
In a future update the situation will be resolved.

@ghost ghost closed this as completed Aug 10, 2022
@ghost ghost reopened this Aug 10, 2022
@alexanderoskin
Copy link

Any estimates on this issue? Now it's blocking issue for many.

@zhizas
Copy link

zhizas commented Oct 18, 2022

any solutions?

@nikoswsn
Copy link

nikoswsn commented Dec 3, 2022

Just added the package and got the same issue. Managed to overcome it with the following patch

diff --git a/node_modules/react-native-appmetrica/android/build.gradle b/node_modules/react-native-appmetrica/android/build.gradle
index 30d2c94..c534c2b 100644
--- a/node_modules/react-native-appmetrica/android/build.gradle
+++ b/node_modules/react-native-appmetrica/android/build.gradle
@@ -28,7 +28,7 @@ def safeExtGet(prop, fallback) {
 }
 
 apply plugin: 'com.android.library'
-apply plugin: 'maven'
+apply plugin: 'maven-publish'
 
 buildscript {
     // The Android Gradle plugin is only required when opening the android folder stand-alone.
@@ -47,7 +47,7 @@ buildscript {
 }
 
 apply plugin: 'com.android.library'
-apply plugin: 'maven'
+apply plugin: 'maven-publish'
 
 android {
     compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
@@ -113,47 +113,3 @@ def configureReactNativePom(def pom) {
     }
 }
 
-afterEvaluate { project ->
-    // some Gradle build hooks ref:
-    // https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
-    task androidJavadoc(type: Javadoc) {
-        source = android.sourceSets.main.java.srcDirs
-        classpath += files(android.bootClasspath)
-        classpath += files(project.getConfigurations().getByName('compile').asList())
-        include '**/*.java'
-    }
-
-    task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
-        classifier = 'javadoc'
-        from androidJavadoc.destinationDir
-    }
-
-    task androidSourcesJar(type: Jar) {
-        classifier = 'sources'
-        from android.sourceSets.main.java.srcDirs
-        include '**/*.java'
-    }
-
-    android.libraryVariants.all { variant ->
-        def name = variant.name.capitalize()
-        def javaCompileTask = variant.javaCompileProvider.get()
-
-        task "jar${name}"(type: Jar, dependsOn: javaCompileTask) {
-            from javaCompileTask.destinationDir
-        }
-    }
-
-    artifacts {
-        archives androidSourcesJar
-        archives androidJavadocJar
-    }
-
-    task installArchives(type: Upload) {
-        configuration = configurations.archives
-        repositories.mavenDeployer {
-            // Deploy to react-native-event-bridge/maven, ready to publish to npm
-            repository url: "file://${projectDir}/../android/maven"
-            configureReactNativePom pom
-        }
-    }
-}

@Desintegrator
Copy link

Яндекс просто забил на эту библиотеку) Зачетно

@tpetrew
Copy link

tpetrew commented Apr 17, 2023

Яндекс просто забил на эту библиотеку) Зачетно

С кайфом ))

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

No branches or pull requests

7 participants