Added the work offline switch for Gradle plugin
without this change you have to pass `contractRepositoryUrl` for the contract jar to be downloaded with this change you can pass the `contractsWorkOffline` flag and the local maven repo will be analyzed fixes #140
This commit is contained in:
@@ -47,7 +47,7 @@ class GradleContractsDownloader {
|
||||
}
|
||||
|
||||
private boolean shouldDownloadContracts(ContractVerifierExtension extension) {
|
||||
return StringUtils.hasText(extension.contractsRepositoryUrl) &&
|
||||
return (StringUtils.hasText(extension.contractsRepositoryUrl) || extension.contractsWorkOffline) &&
|
||||
(StringUtils.hasText(extension.contractDependency.artifactId) ||
|
||||
StringUtils.hasText(extension.contractDependency.stringNotation))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user