1234567891011121314151617181920212223242526 |
- ext {
- REPOSITORY_HOME = 'https://repo.rdc.aliyun.com/repository/78804-release-8dPipU/'
- REPOSITORY_URL = REPOSITORY_HOME + "/maven-public/"
- REPOSITORY_RELEASE_URL = REPOSITORY_HOME + "/maven-releases/"
- REPOSITORY_SNAPSHOT_URL = REPOSITORY_HOME + "/maven-snapshots/"
- }
- allprojects {
- repositories {
- all {ArtifactRepository repo ->
- def url = repo.url.toString()
- if (repo instanceof MavenArtifactRepository && (url.startsWith("https://repo1.maven.org/maven2") || url.startsWith('https://jcenter.bintray.com/'))) {
- project.logger.warn "Repository ${repo.url} removed."
- remove repo
- }
- }
- mavenLocal()
- maven {
- allowInsecureProtocol = true
- url REPOSITORY_URL
- }
- maven {
- allowInsecureProtocol = true
- url REPOSITORY_SNAPSHOT_URL
- }
- }
- }
|