Skip to content

Instantly share code, notes, and snippets.

@lopo12123
Created February 22, 2023 14:10
Show Gist options
  • Save lopo12123/f981533a8e6d0be29637487ca4fbc9b1 to your computer and use it in GitHub Desktop.
Save lopo12123/f981533a8e6d0be29637487ca4fbc9b1 to your computer and use it in GitHub Desktop.
maven 阿里云镜像
buildscript {
ext.kotlin_version = '1.5.20'
repositories {
// google()
// mavenCentral()
maven{ url 'https://maven.aliyun.com/repository/central' }
maven{ url 'https://maven.aliyun.com/repository/public' }
maven{ url 'https://maven.aliyun.com/repository/google' }
maven{ url 'https://maven.aliyun.com/repository/gradle-plugin' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
maven{ url 'https://maven.aliyun.com/repository/central' }
maven{ url 'https://maven.aliyun.com/repository/public' }
maven{ url 'https://maven.aliyun.com/repository/google' }
maven{ url 'https://maven.aliyun.com/repository/gradle-plugin' }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment