Groovy 2.2.1

groovy.lang
[Java] Annotation Type GrabExclude

java.lang.Object
  groovy.lang.GrabExclude

@Retention(RetentionPolicy.SOURCE)
@Target({
        ElementType.CONSTRUCTOR,
        ElementType.FIELD,
        ElementType.LOCAL_VARIABLE,
        ElementType.METHOD,
        ElementType.PARAMETER,
        ElementType.TYPE})
public @interface GrabExclude

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

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

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


Required Element Summary
java.lang.String group

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

java.lang.String module

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

 
Optional Element Summary
java.lang.String value

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

 
Method Summary
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Element Detail

group

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


module

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


value

public String value
Allows to specify the group (organisation) and the module (artifact) in a two compact convenience formats, e.g.: @GrabExclude('org.apache.ant:ant-junit') or @GrabExclude('org.apache.ant#ant-junit') @default ""


 

Copyright © 2003-2013 The Codehaus. All rights reserved.