snyk 1.994.0 → 1.995.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2475,10 +2475,10 @@
|
|
|
2475
2475
|
},
|
|
2476
2476
|
{
|
|
2477
2477
|
"name": "snyk-gradle-plugin",
|
|
2478
|
-
"version": "3.
|
|
2478
|
+
"version": "3.22.1",
|
|
2479
2479
|
"author": "snyk.io",
|
|
2480
2480
|
"repository": "https://github.com/snyk/snyk-gradle-plugin",
|
|
2481
|
-
"source": "https://registry.npmjs.org/snyk-gradle-plugin/-/snyk-gradle-plugin-3.
|
|
2481
|
+
"source": "https://registry.npmjs.org/snyk-gradle-plugin/-/snyk-gradle-plugin-3.22.1.tgz",
|
|
2482
2482
|
"license": "Apache-2.0",
|
|
2483
2483
|
"licenseText": "Copyright 2017 Snyk Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
|
|
2484
2484
|
},
|
package/dist/lib/init.gradle
CHANGED
|
@@ -155,6 +155,9 @@ def matchesAttributeFilter(conf, confAttrSpec) {
|
|
|
155
155
|
|
|
156
156
|
def findMatchingConfigs(confs, confNameFilter, confAttrSpec) {
|
|
157
157
|
def matching = confs.findAll({ it.name =~ confNameFilter })
|
|
158
|
+
if (matching.isEmpty() && !confs.isEmpty()) {
|
|
159
|
+
throw new RuntimeException('Matching configurations ' + confNameFilter + ' were not found')
|
|
160
|
+
}
|
|
158
161
|
if (confAttrSpec == null) {
|
|
159
162
|
// We don't have an attribute spec to match
|
|
160
163
|
return matching
|
|
@@ -181,6 +184,7 @@ def findProjectConfigs(proj, confNameFilter, confAttrSpec) {
|
|
|
181
184
|
resolvable.add(it)
|
|
182
185
|
} catch (Exception ex) {
|
|
183
186
|
// Swallow the error
|
|
187
|
+
debugLog("Skipping config ${it.name} due to resolvedConfiguration error.")
|
|
184
188
|
}
|
|
185
189
|
})
|
|
186
190
|
debugLog("resolvableConfigs=$resolvable")
|
|
@@ -281,10 +285,9 @@ allprojects { currProj ->
|
|
|
281
285
|
debugLog("first level module dependencies for config `$config.name': $resConf.firstLevelModuleDependencies")
|
|
282
286
|
}
|
|
283
287
|
})
|
|
284
|
-
if (resolvedConfigs.isEmpty() && !
|
|
285
|
-
throw new RuntimeException('
|
|
286
|
-
'
|
|
287
|
-
+ proj.configurations.collect { it.name })
|
|
288
|
+
if (resolvedConfigs.isEmpty() && !resolvableConfigs.isEmpty()) {
|
|
289
|
+
throw new RuntimeException('Configurations: ' + resolvableConfigs.collect { it.name } +
|
|
290
|
+
' for project ' + proj + ' could not be resolved.')
|
|
288
291
|
}
|
|
289
292
|
|
|
290
293
|
def nonemptyFirstLevelDeps = resolvedConfigs.resolvedConfiguration.firstLevelModuleDependencies.findAll({ !it.isEmpty() })
|