-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsettings-offline.gradle
35 lines (33 loc) · 1.09 KB
/
settings-offline.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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'