Top Description Methods
groovy.lang

public @Interface GrabExclude

extends Annotation
Annotations
@Retention:SOURCE
@Target:CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PARAMETER, TYPE
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Used to exclude an indirectly referenced artifact (a transitive dependency) from the classpath.

Examples:
@GrabExclude(group='mysql', module='mysql-connector-java') // group/module form
@GrabExclude('mysql:mysql-connector-java') // compact form

Further information about customising grape behavior can be found on the Grape documentation page: http://groovy-lang.org/grape.html.

Method Summary

Modifier and TypeMethod and Description
public String
group()

The organisation or group, e.g.: "org.apache.ant"; required unless the compact form is used.

public String
module()

The module or artifact, e.g.: "ant-junit"; required unless the compact form is used.

public String
value()

Allows you to specify the group (organisation) and the module (artifact) in one of two compact convenience formats, e.g.: @GrabExclude('org.apache.ant:ant-junit') or @GrabExclude('org.apache.ant#ant-junit')

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupback to summary
public String group()

The organisation or group, e.g.: "org.apache.ant"; required unless the compact form is used.

moduleback to summary
public String module()

The module or artifact, e.g.: "ant-junit"; required unless the compact form is used.

valueback to summary
public String value()

Allows you to specify the group (organisation) and the module (artifact) in one of two compact convenience formats, e.g.: @GrabExclude('org.apache.ant:ant-junit') or @GrabExclude('org.apache.ant#ant-junit')