Skip to content

Commit 8604e61

Browse files
Use proxy for dependencies (#9263)
1 parent 807f207 commit 8604e61

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

gradle/forbiddenapis.gradle

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
buildscript {
22
repositories {
3-
maven {
4-
url "https://plugins.gradle.org/m2/"
3+
mavenLocal()
4+
if (project.rootProject.hasProperty("gradlePluginProxy")) {
5+
maven {
6+
url project.rootProject.property("gradlePluginProxy")
7+
allowInsecureProtocol true
8+
}
59
}
10+
if (project.rootProject.hasProperty("mavenRepositoryProxy")) {
11+
maven {
12+
url project.rootProject.property("mavenRepositoryProxy")
13+
allowInsecureProtocol true
14+
}
15+
}
16+
gradlePluginPortal()
17+
mavenCentral()
618
}
19+
720
dependencies {
821
classpath "de.thetaphi:forbiddenapis:3.8"
922
}

0 commit comments

Comments
 (0)