Files
HokmPlay/android/mirror-init.gradle
T

25 lines
973 B
Groovy
Raw Normal View History

// Injects the myket.ir Maven mirror into every project's buildscript + normal
// repositories. Needed because dl.google.com is unreachable here and some
// Capacitor subprojects declare only google()/mavenCentral() in node_modules.
// Pass on the command line with: gradlew -I mirror-init.gradle <task>
allprojects {
buildscript {
repositories {
maven { url 'https://maven.myket.ir' }
maven { url 'https://mirror.abrha.net/repository/maven/' }
}
}
repositories {
maven { url 'https://maven.myket.ir' }
maven { url 'https://mirror.abrha.net/repository/maven/' }
}
// Build-Tools 35.0.0 isn't installed (and can't be fetched — Google is
// blocked here). Pin every Android module to the installed 36.0.0.
afterEvaluate { proj ->
def android = proj.extensions.findByName('android')
if (android != null) {
android.buildToolsVersion = '36.0.0'
}
}
}