Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Declare dependency repositories in dependencyResolutionManagement block
Browse files Browse the repository at this point in the history
  • Loading branch information
erikghonyan committed May 12, 2023
1 parent 835dbdf commit 532112a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
16 changes: 0 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,6 @@ plugins {
}

allprojects {
repositories {
google()
mavenCentral()
mavenLocal()

// Needed when using the 'dev' Compose Compiler
// maven("https://androidx.dev/storage/compose-compiler/repository/")

// Jetpack Compose SNAPSHOTs if needed
// maven("https://androidx.dev/snapshots/builds/$composeSnapshot/artifacts/repository/")

// Used for snapshots if needed
// maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
// maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}

apply(plugin = rootProject.libs.plugins.spotless.get().pluginId)
configure<SpotlessExtension> {
kotlin {
Expand Down
20 changes: 20 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,26 @@ pluginManagement {
}
}

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)

repositories {
google()
mavenCentral()
mavenLocal()

// Needed when using the 'dev' Compose Compiler
// maven("https://androidx.dev/storage/compose-compiler/repository/")

// Jetpack Compose SNAPSHOTs if needed
// maven("https://androidx.dev/snapshots/builds/$composeSnapshot/artifacts/repository/")

// Used for snapshots if needed
// maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
// maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}

plugins {
id("com.gradle.enterprise") version "3.13.2"
}
Expand Down

0 comments on commit 532112a

Please sign in to comment.