Add additional classpath elements (jars, dirs) to the compile and execution environment of the current build file.
This is required to used foreign libraries and APIs in your build script,
otherwise you would be limited to the standard API of the Java, Scala and SBuild distribution.
The @classpath annotation has only effect when used in a build file.
The @classpath annotation supports local files and all default scheme handlers.
Example of a build file which uses two additional classpath resources, one via the "mvn" scheme handler and one local file:
This member is added by an implicit conversion from classpath to
ArrowAssoc[classpath] performed by method any2ArrowAssoc in scala.Predef.
Definition Classes
ArrowAssoc
Shadowed Implicit Value Members
valself: Any
Implicit information
This member is added by an implicit conversion from classpath to
StringAdd performed by method any2stringadd in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
(classpath: StringAdd).self
Definition Classes
StringAdd
valself: Any
Implicit information
This member is added by an implicit conversion from classpath to
StringFormat performed by method any2stringfmt in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
This member is added by an implicit conversion from classpath to
ArrowAssoc[classpath] performed by method any2ArrowAssoc in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
This member is added by an implicit conversion from classpath to
Ensuring[classpath] performed by method any2Ensuring in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
(classpath: Ensuring[classpath]).x
Definition Classes
Ensuring
Annotations
@deprecated
Deprecated
(Since version 2.10.0) Use resultOfEnsuring instead
Inherited from Annotation
Inherited from AnyRef
Inherited from Any
Inherited by implicit conversion any2stringadd from
classpath to StringAdd
Inherited by implicit conversion any2stringfmt from
classpath to StringFormat
Inherited by implicit conversion any2ArrowAssoc from
classpath to ArrowAssoc[classpath]
Inherited by implicit conversion any2Ensuring from
classpath to Ensuring[classpath]
Add additional classpath elements (jars, dirs) to the compile and execution environment of the current build file. This is required to used foreign libraries and APIs in your build script, otherwise you would be limited to the standard API of the Java, Scala and SBuild distribution.
The
@classpath
annotation has only effect when used in a build file.The
@classpath
annotation supports local files and all default scheme handlers.Example of a build file which uses two additional classpath resources, one via the "mvn" scheme handler and one local file:
@include