Skip to content

Instantly share code, notes, and snippets.

@VacantThinker
Created December 21, 2023 18:53
Show Gist options
  • Select an option

  • Save VacantThinker/4eaa3759cbdae98103667a73a58d199a to your computer and use it in GitHub Desktop.

Select an option

Save VacantThinker/4eaa3759cbdae98103667a73a58d199a to your computer and use it in GitHub Desktop.
maven mirror aliyun

link

https://developer.aliyun.com/mvn/guide


build.gradle

buildscript {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/central' }
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
        maven { url 'https://maven.aliyun.com/repository/apache-snapshots' }

        mavenCentral()
        google()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.2.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment