settings.gradle.kts 665 B

12345678910111213141516171819202122232425262728
  1. pluginManagement {
  2. resolutionStrategy {
  3. eachPlugin {
  4. val regex = "com.android.(library|application)".toRegex()
  5. if (regex matches requested.id.id) {
  6. useModule("com.android.tools.build:gradle:${requested.version}")
  7. }
  8. }
  9. }
  10. repositories {
  11. gradlePluginPortal()
  12. google()
  13. mavenCentral()
  14. maven(url = "https://www.jitpack.io")
  15. }
  16. }
  17. dependencyResolutionManagement {
  18. // repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
  19. repositories {
  20. mavenCentral()
  21. google()
  22. }
  23. }
  24. listOf("library", "sample").forEach {
  25. include(":$it")
  26. }