settings.gradle (961B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 // Prevents gradle builds from looking for a root settings.gradle 6 pluginManagement { 7 if (!gradle.root.hasProperty("mozconfig")){ 8 apply from: file('../../../gradle/mozconfig.gradle') 9 } else { 10 gradle.ext.mozconfig = gradle.root.mozconfig 11 } 12 13 repositories { 14 gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository -> 15 maven { 16 url = repository 17 if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) { 18 allowInsecureProtocol = true 19 } 20 } 21 } 22 } 23 } 24 25 dependencyResolutionManagement { 26 versionCatalogs { 27 libs { 28 from(files("../../../../../gradle/libs.versions.toml")) 29 } 30 } 31 }