Skip to content

Commit 403ba99

Browse files
Explicitly configure metadata sources for Maven Central
This commit updates the `settings.gradle.kts` file to explicitly configure the metadata sources for the `mavenCentral()` repository. The `mavenPom()` and `artifact()` sources are now specified. This change can help resolve dependency resolution issues by ensuring consistent and reliable metadata retrieval.
1 parent 80909c8 commit 403ba99

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

settings.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ dependencyResolutionManagement {
1616
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1717
repositories {
1818
google()
19-
mavenCentral()
20-
maven(url = "https://jitpack.io")
19+
mavenCentral {
20+
metadataSources {
21+
mavenPom()
22+
artifact()
23+
}
24+
}
25+
maven("https://jitpack.io")
2126
}
2227
}
2328

0 commit comments

Comments
 (0)