build: reorder Maven repos to reduce flatpak generator 404s (#5509)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
James Rich
2026-05-19 13:43:00 -07:00
committed by GitHub
parent 6fb3776e0c
commit 930dee09e5
3 changed files with 20 additions and 5 deletions

3
.gitignore vendored
View File

@@ -79,3 +79,6 @@ feature/docs/src/commonMain/composeResources/files/*/docs/
/.specify/extensions/.cache/
# Jekyll local config (comments out remote_theme for local builds)
docs/_config_local.yml
# Flatpak source manifests (generated by flatpakGradleGenerator)
flatpak-sources-*.json

View File

@@ -17,9 +17,15 @@
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
maven { url = uri("../offline-repository") }
}
}
@@ -31,6 +37,8 @@ plugins {
dependencyResolutionManagement {
repositories {
mavenCentral()
gradlePluginPortal()
google {
content {
includeGroupByRegex("com\\.android.*")
@@ -38,8 +46,6 @@ dependencyResolutionManagement {
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
maven { url = uri("../offline-repository") }
}
versionCatalogs {

View File

@@ -18,9 +18,15 @@
pluginManagement {
includeBuild("build-logic")
repositories {
google()
mavenCentral()
gradlePluginPortal()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
maven { url = uri("./offline-repository") }
}
}
@@ -37,6 +43,7 @@ dependencyResolutionManagement {
repositories {
// Only enable mavenLocal for local JitPack testing; never in CI.
if (providers.gradleProperty("useMavenLocal").isPresent) mavenLocal()
mavenCentral()
google {
content {
includeGroupByRegex("com\\.android.*")
@@ -44,7 +51,6 @@ dependencyResolutionManagement {
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
maven {
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
mavenContent { snapshotsOnly() }