File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ buildscript {
54
54
fun String.v (): String = extra[" $this .version" ] as String
55
55
56
56
dependencies {
57
- if (extra.has (" noverify" )) {
57
+ if (property (" noverify" )?.ifEmpty { " false " } ?.toBoolean() == true ) {
58
58
// skip
59
- } else if (extra.has (" localCdp" )) {
59
+ } else if (property (" localCdp" )?.ifEmpty { " true " }?.toBoolean() == true ) {
60
60
// Below enables use of locally built file for testing purposes
61
61
classpath(files(" plugins/checksum-dependency-plugin/build/libs/checksum-dependency-plugin-${" project" .v()} .jar" ))
62
62
classpath(" org.bouncycastle:bcpg-jdk15on:1.62" )
@@ -122,10 +122,10 @@ val violations =
122
122
.joinToString(" \n " ) { (file, sha512) -> " SHA-512(${file.name} ) = $sha512 ($file )" }
123
123
124
124
// This enables to skip checksum-dependency which is helpful for checksum-dependency development
125
- if (! extra.has (" noverify" )) {
125
+ if (property (" noverify" )?.ifEmpty { " false " } ?.toBoolean() != true ) {
126
126
if (violations.isNotBlank()) {
127
127
val msg = " Buildscript classpath has non-whitelisted files:\n $violations "
128
- if (extra.has (" localCdp" )) {
128
+ if (property (" localCdp" )?.ifEmpty { " true " }?.toBoolean() == true ) {
129
129
println (msg)
130
130
} else {
131
131
throw GradleException (msg)
You can’t perform that action at this time.
0 commit comments