36 lines
1.1 KiB
Groovy
36 lines
1.1 KiB
Groovy
// gradle/init.d/init.gradle use allprojects {
|
|
// settings.gradle use pluginManagement {
|
|
pluginManagement {
|
|
repositories {
|
|
all { ArtifactRepository repo ->
|
|
if (repo instanceof MavenArtifactRepository) {
|
|
def url = repo.url.toString()
|
|
if (url.startsWith("https://repo1.maven.org/maven2")
|
|
|| url.startsWith("https://jcenter.bintray.com/")
|
|
|| url.startsWith("https://cache-redirector.jetbrains.com")) {
|
|
project.logger.lifecycle("remove Repository ${repo.url}.")
|
|
remove(repo)
|
|
}
|
|
}
|
|
}
|
|
mavenLocal()
|
|
maven { name "jetbrains-cache"; url ""
|
|
// allowInsecureProtocol true // 7.0+
|
|
}
|
|
maven { name "maven-cache"; url ""
|
|
// allowInsecureProtocol true // 7.0+
|
|
}
|
|
}
|
|
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
maven { name "jetbrains-cache"; url ""
|
|
// allowInsecureProtocol true // 7.0+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
rootProject.name = 'show-comment'
|
|
|