From 907d9468c539b9a3a27c0da0e87abe1626a18639 Mon Sep 17 00:00:00 2001 From: Nikola Simsic Date: Thu, 21 May 2026 12:55:42 +0200 Subject: [PATCH] Use nexus instead of maven repositories --- android/build.gradle | 26 +++++--------------------- android/settings.gradle | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index d528f750..d7a3c46e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -19,14 +19,9 @@ buildscript { securityCryptoVersion = "1.1.0" } repositories { + maven { url "https://nexus.rnd.mendix.com/repository/repo1-proxy/" } + maven { url "https://packages.rnd.mendix.com/jcenter" } google() - mavenCentral() - maven { - url "https://maven.fabric.io/public" - } - maven { - url "https://packages.rnd.mendix.com/jcenter" - } } dependencies { classpath 'com.android.tools.build:gradle' @@ -58,24 +53,13 @@ project.ext { allprojects { repositories { - all { repo -> - println repo.url.toString() - if (repo.url.toString().contains("jcenter.bintray.com") || repo.url.toString().contains("jitpack.io")) { - project.logger.warn "Repository ${repo.url} removed." - remove repo - google() - mavenCentral() - } - } maven { url "$rootDir/../node_modules/@notifee/react-native/android/libs" } - google() - maven { - url "https://maven.fabric.io/public" - } - maven { url "https://www.jitpack.io" } + maven { url "https://nexus.rnd.mendix.com/repository/repo1-proxy/" } + maven { url "https://nexus.rnd.mendix.com/repository/jitpack-proxy/" } maven { url "https://packages.rnd.mendix.com/jcenter" } + google() // Build all modules with Android 16KB pages enabled plugins.withId('com.android.application') { diff --git a/android/settings.gradle b/android/settings.gradle index e2f594bd..db875ac3 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,7 +1,20 @@ -pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } +pluginManagement { + repositories { + maven { url "https://nexus.rnd.mendix.com/repository/repo1-proxy/" } + } + includeBuild("../node_modules/@react-native/gradle-plugin") +} plugins { id("com.facebook.react.settings") } extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } +dependencyResolutionManagement { + repositoriesMode = RepositoriesMode.PREFER_SETTINGS + repositories { + maven { url "https://nexus.rnd.mendix.com/repository/repo1-proxy/" } + google() + } +} + rootProject.name = 'nativeTemplate' includeBuild('../node_modules/@react-native/gradle-plugin')