Skip to content

Commit 4a7c20a

Browse files
committed
Ensure http:// repos are not used
1 parent 18afaac commit 4a7c20a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,16 @@ task buildscriptDependencies(type: org.gradle.api.tasks.diagnostics.DependencyRe
567567
}
568568
}
569569

570+
project.afterEvaluate {
571+
allprojects.repositories.each { handler ->
572+
handler.each {
573+
if (it.url.toString().startsWith("http://")) {
574+
throw new RuntimeException("Build should not define insecure HTTP-based Maven repostories")
575+
}
576+
}
577+
}
578+
}
579+
570580
apply plugin: "io.sdkman.vendors"
571581
sdkman {
572582
api = "https://vendors.sdkman.io"

0 commit comments

Comments
 (0)