From e2d7e3d7ca3a0de18c99f0817aea51e153b8d648 Mon Sep 17 00:00:00 2001 From: Niko Diamadis Date: Thu, 18 Dec 2025 01:12:54 +0100 Subject: [PATCH] Move repository definitions to settings.gradle --- app/build.gradle | 3 --- build.gradle | 12 ------------ settings.gradle | 22 ++++++++++++++++++++++ 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index ca4fdab1..2530e436 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -4,9 +4,6 @@ plugins { id 'com.google.devtools.ksp' } -repositories { - mavenCentral() -} apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'com.google.gms.google-services' diff --git a/build.gradle b/build.gradle index 16f8731b..b0dc58af 100644 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,5 @@ buildscript { ext.kotlin_version = '2.2.0' - repositories { - google() - mavenCentral() - } dependencies { classpath 'com.android.tools.build:gradle:8.13.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" @@ -17,11 +13,3 @@ buildscript { plugins { id 'com.google.devtools.ksp' version '2.2.0-2.0.2' } - -allprojects { - repositories { - google() - mavenCentral() - maven { url "https://jitpack.io" } // For StfalconImageViewer - } -} diff --git a/settings.gradle b/settings.gradle index 231bc04f..afcad4c1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,24 @@ +pluginManagement { + repositories { + google { + content { + includeGroupByRegex("com\\.android.*") + includeGroupByRegex("com\\.google.*") + includeGroupByRegex("androidx.*") + } + } + mavenCentral() + gradlePluginPortal() + } +} +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + maven { url "https://jitpack.io" } // For StfalconImageViewer + } +} + rootProject.name='ntfy' include ':app'