Skip to content

Commit

Permalink
Restrict the artifacts downloaded from Google repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsk committed Sep 12, 2024
1 parent fc8059e commit b7e27b4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
8 changes: 7 additions & 1 deletion build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ plugins {
group = "io.github.droidkaigi.confsched.buildlogic"

repositories {
google()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
Expand Down
8 changes: 7 additions & 1 deletion build-logic/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

dependencyResolutionManagement {
repositories {
google()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
maven {
url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev/")
Expand Down
16 changes: 14 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
pluginManagement {
includeBuild("build-logic")
repositories {
google()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
Expand All @@ -10,7 +16,13 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
repositories {
google()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
maven {
url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev/")
Expand Down

0 comments on commit b7e27b4

Please sign in to comment.