public enum ConfigurationName extends java.lang.Enum<ConfigurationName>
See the Gradle doc on dependency configurations for more info.
Enum Constant and Description |
---|
annotationProcessor
The annotation processors used during the compilation of this module.
|
api
The API of a Java library.
|
classpath
The classpath of the Gradle build process.
|
compile
Deprecated.
Deprecated since Gradle 5.0. Use
implementation or api instead. |
compileClasspath
All the dependencies included for the Java module compilation.
|
compileOnly
Dependencies available at compile-time but not at runtime.
|
fetch
A Spine-specific configuration used to download and resolve artifacts.
|
implementation
Dependencies on which the Java module relies for implementation.
|
protobuf
Configuration that allows to compile
.proto files form the dependencies. |
runtimeClasspath
All the dependencies included for the Java module runtime.
|
runtimeOnly
Dependencies available at runtime but not at compile-time.
|
testAnnotationProcessor
The annotation processors used during the compilation of the tests of this module.
|
testCompileClasspath
All the dependencies included for the Java module tests compilation.
|
testImplementation
Dependencies on which the Java module tests rely for implementation.
|
testRuntimeClasspath
All the dependencies included for the Java module test runtime.
|
testRuntimeOnly
Dependencies available at test runtime but not at compile-time.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
value() |
static ConfigurationName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConfigurationName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigurationName classpath
public static final ConfigurationName annotationProcessor
These dependencies are not accessible to the user at compile-time or at runtime directly.
public static final ConfigurationName api
The dependencies are available at compile-time and runtime.
Dependencies in this configuration are included as compile-time transitive dependencies in the artifacts of the library.
public static final ConfigurationName implementation
The dependencies are available at compile-time and runtime.
Dependencies in this configuration are included as runtime transitive dependencies in the artifacts of the module.
public static final ConfigurationName compileOnly
Suitable for annotations with RetentionPolicy.CLASS
.
public static final ConfigurationName compileClasspath
Users cannot add dependencies directly to this configuration. However, this configuration may be resolved.
public static final ConfigurationName runtimeOnly
Suitable for SPI implementations loaded via ServiceLoader
or other
classpath scanning utilities.
public static final ConfigurationName runtimeClasspath
Users cannot add dependencies directly to this configuration. However, this configuration may be resolved.
public static final ConfigurationName testAnnotationProcessor
These dependencies are not accessible to the user at compile-time or at runtime directly.
public static final ConfigurationName testImplementation
The dependencies are available at compile-time of the test code and at the test runtime.
public static final ConfigurationName testCompileClasspath
Users cannot add dependencies directly to this configuration. However, this configuration may be resolved.
public static final ConfigurationName testRuntimeOnly
For example, JUnit runners may be depended on with this configuration.
public static final ConfigurationName testRuntimeClasspath
Users cannot add dependencies directly to this configuration. However, this configuration may be resolved.
public static final ConfigurationName protobuf
.proto
files form the dependencies.
Users should use compile
when adding Protobuf dependencies to other strictly
Protobuf modules.
@Internal public static final ConfigurationName fetch
@Deprecated public static final ConfigurationName compile
implementation
or api
instead.compile
configuration.public static ConfigurationName[] values()
for (ConfigurationName c : ConfigurationName.values()) System.out.println(c);
public static ConfigurationName valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()