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 RichandCopilot authored and GitHub committed 2026-05-19 15:43:00 -05:00
1 parent 6fb3776e0c
commit 930dee09e5
3 files changed
+20 -5

No files matched your search

+3
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
+9 -3
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 {
+8 -2
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() }