Skip to content

Instantly share code, notes, and snippets.

@ezirmusitua
Last active April 12, 2019 02:29
Show Gist options
  • Save ezirmusitua/efe5b50825d7ad16139a7ba9f59de1a0 to your computer and use it in GitHub Desktop.
Save ezirmusitua/efe5b50825d7ad16139a7ba9f59de1a0 to your computer and use it in GitHub Desktop.
[Use aliyun maven repo service] Replace default repo with aliyun maven repo service #unity #android #gradle
// If using unity, find mainTemplate.gradle in `Editor\Data\PlaybackEngines\AndroidPlayer\Tools\GradleTemplates`
// If want add other maven repo, find in `https://maven.aliyun.com/mvn/view`
buildscript {
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
// google()
// jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
**BUILD_SCRIPT_DEPS**}
}
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
// google()
// jcenter()
flatDir {
dirs 'libs'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment