tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

settings.gradle (1864B)


      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 pluginManagement {
      6    if (!gradle.root.hasProperty("mozconfig")){
      7        apply from: file('../gradle/mozconfig.gradle')
      8    } else {
      9        gradle.ext.mozconfig = gradle.root.mozconfig
     10    }
     11 
     12    repositories {
     13        gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository ->
     14            maven {
     15                url = repository
     16                if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) {
     17                    allowInsecureProtocol = true
     18                }
     19            }
     20        }
     21    }
     22 
     23    includeBuild("plugins/dependencies")
     24    includeBuild("plugins/publicsuffixlist")
     25    includeBuild("../gradle/plugins/nimbus-gradle-plugin")
     26 }
     27 
     28 plugins {
     29    id 'mozac.DependenciesPlugin'
     30 }
     31 
     32 dependencyResolutionManagement {
     33    versionCatalogs {
     34        libs {
     35            from(files("../../../gradle/libs.versions.toml"))
     36        }
     37    }
     38 }
     39 
     40 ext.topsrcdir = rootProject.projectDir.absolutePath.minus("mobile/android/android-components")
     41 
     42 if (gradle.ext.mozconfig.substs.MOZ_APPSERVICES_IN_TREE) {
     43    apply from: file("${topsrcdir}/services/app-services/settings.gradle")
     44 }
     45 
     46 apply from: file('../shared-settings.gradle')
     47 apply from: file('../autopublish-settings.gradle')
     48 
     49 buildCache {
     50    local {
     51        directory = new File(rootDir, '.build-cache')
     52    }
     53 }
     54 
     55 def projectLocalProperties = file("local.properties").with { localPropertiesFile ->
     56    def localProperties = new Properties()
     57    if (localPropertiesFile.canRead()) {
     58        localPropertiesFile.withInputStream { localProperties.load(it) }
     59    }
     60    localProperties
     61 }
     62 projectLocalProperties.each { prop ->
     63    gradle.ext."localProperties.${prop.key}" = prop.value
     64 }