Groovy 2.2.2

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') // 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.codehaus.org/Grape.


 
Optional Element Summary
java.lang.String group

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

java.lang.String module

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

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 compact form is used. @default ""


module

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


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.