--- a/build.gradle +++ b/build.gradle @@ -1,30 +1,17 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - project.ext.MAVEN_REPO_CACHE = System.getenv("MAVEN_REPO_CACHE")?.trim() - if (MAVEN_REPO_CACHE) { - repositories { maven { url MAVEN_REPO_CACHE } } - } else { repositories { google() jcenter() google() } } -} plugins { id 'com.diffplug.gradle.spotless' version '3.16.0' } apply plugin: 'com.diffplug.gradle.spotless' -if (MAVEN_REPO_CACHE) { - allprojects { - buildscript { - repositories { maven { url MAVEN_REPO_CACHE } } - } - repositories { maven { url MAVEN_REPO_CACHE } } - } -} else { allprojects { buildscript { repositories { @@ -39,7 +26,6 @@ google() } } -} project.ext.preDexLibs = !project.hasProperty('disablePreDex')