MCPcopy Index your code
hub / github.com/apache/groovy / grab

Method grab

src/main/java/groovy/grape/Grape.java:243–257  ·  view source on GitHub ↗

Grabs a dependency expressed as a single string. Recognized forms: Maven shorthand: group:module:version[:classifier][@ext] Ivy shorthand: group#module;version Endorsed module: a bare module name (legacy; resolves under the {@code groovy.e

(String endorsed)

Source from the content-addressed store, hash-verified

241 * @param endorsed the dependency notation
242 */
243 public static void grab(String endorsed) {
244 if (enableGrapes) {
245 GrapeEngine instance = getInstance();
246 if (instance != null) {
247 if (endorsed != null && (endorsed.indexOf(':') >= 0 || endorsed.indexOf('#') >= 0)) {
248 Map<String, Object> parts = GrapeUtil.getIvyParts(endorsed);
249 if (parts.get("group") != null && parts.get("module") != null) {
250 grab(parts);
251 return;
252 }
253 }
254 instance.grab(endorsed);
255 }
256 }
257 }
258
259 /**
260 * Grabs a single dependency.

Callers 1

visitMethod · 0.95

Calls 7

getInstanceMethod · 0.95
getIvyPartsMethod · 0.95
grabMethod · 0.95
getMethod · 0.65
containsKeyMethod · 0.65
putMethod · 0.65
indexOfMethod · 0.45

Tested by

no test coverage detected