Last active
April 12, 2019 02:29
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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