import groovy.json.JsonSlurper def slurper = new JsonSlurper() def projectRootDir = System.getProperty("user.dir") def json = slurper.parse(new File("${projectRootDir}/mozconfig.json")) gradle.ext.mozconfig = json gradle.ext.mozconfig.substs.MOZ_APP_VERSION = file("${projectRootDir}/version.txt").getText('utf-8').replaceAll("\n", "") gradle.ext.mozconfig.substs.MOZ_ANDROID_FAT_AAR_ARCHITECTURES = true gradle.ext.mozconfig.substs.MOZ_UPDATE_CHANNEL = 'release' gradle.ext.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES = true gradle.ext.mozconfig.topobjdir = System.getProperty("user.dir")