Skip to content

Commit 3fd319f

Browse files
committed
Update dependencies
1 parent 8f782d4 commit 3fd319f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testdata/gradle/setupcmd/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ plugins {
55
allprojects {
66
repositories {
77
all { repo ->
8-
repo.allowInsecureProtocol = true // Allow plain HTTP for local Artifactory tests
8+
// This check is for Gradle versions less than 8.0
9+
if (repo.hasProperty('allowInsecureProtocol')) {
10+
// For Gradle 8.0 and later this flag is mandatory to allow running against local Artifactory instances
11+
repo.allowInsecureProtocol = true
12+
}
913
}
1014
}
1115
}

0 commit comments

Comments
 (0)