Declare maven repos in dependencyResolutionManagement

This commit is contained in:
Goooler 2022-12-07 11:34:52 +08:00 committed by cketti
parent d4055ea252
commit 9424de9f8f
3 changed files with 9 additions and 10 deletions

View file

@ -82,12 +82,6 @@ project.ext {
}
subprojects {
repositories {
mavenCentral()
google()
maven { url 'https://jitpack.io' }
}
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute module("androidx.core:core") using module("androidx.core:core:${versions.androidxCore}")

View file

@ -7,10 +7,6 @@ application {
mainClass = "app.k9mail.cli.html.cleaner.MainKt"
}
repositories {
mavenCentral()
}
dependencies {
implementation project(':app:html-cleaner')

View file

@ -1,3 +1,12 @@
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
include ':app:k9mail'
include ':app:ui:base'
include ':app:ui:setup'