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)
| 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. |
no test coverage detected