Modifier and Type | Field | Description |
---|---|---|
static String |
ANNOTATION_PROCESSOR_CONFIGURATION_NAME |
The name of the annotation processor configuration.
|
static String |
API_CONFIGURATION_NAME |
The name of the API configuration, where dependencies exported by a component at compile time should
be declared.
|
static String |
API_ELEMENTS_CONFIGURATION_NAME |
The name of the configuration to define the API elements of a component.
|
static String |
CLASSES_TASK_NAME |
The name of the lifecycle task which outcome is that all the classes of a component are generated.
|
static String |
COMPILE_CLASSPATH_CONFIGURATION_NAME |
The name of the compile classpath configuration.
|
static String |
COMPILE_JAVA_TASK_NAME |
The name of the task which compiles Java sources.
|
static String |
COMPILE_ONLY_API_CONFIGURATION_NAME |
The name of the configuration to define the API elements of a component that are required to compile a component,
but not at runtime.
|
static String |
COMPILE_ONLY_CONFIGURATION_NAME |
The name of the configuration that is used to declare dependencies which are only required to compile a component,
but not at runtime.
|
static String |
COMPILE_TEST_JAVA_TASK_NAME |
The name of the task which compiles the test Java sources.
|
static String |
IMPLEMENTATION_CONFIGURATION_NAME |
The name of the implementation configuration, where dependencies that are only used internally by
a component should be declared.
|
static String |
JAR_TASK_NAME |
The name of the task which generates the component main jar.
|
static String |
JAVADOC_ELEMENTS_CONFIGURATION_NAME |
The name of the javadoc elements configuration.
|
static String |
JAVADOC_TASK_NAME |
The name of the task which generates the component javadoc.
|
static String |
PROCESS_RESOURCES_TASK_NAME |
The name of the task that processes resources.
|
static String |
PROCESS_TEST_RESOURCES_TASK_NAME |
The name of the task which processes the test resources.
|
static String |
RUNTIME_CLASSPATH_CONFIGURATION_NAME |
The name of the runtime classpath configuration, used by a component to query its own runtime classpath.
|
static String |
RUNTIME_ELEMENTS_CONFIGURATION_NAME |
The name of the runtime elements configuration, that should be used by consumers
to query the runtime dependencies of a component.
|
static String |
RUNTIME_ONLY_CONFIGURATION_NAME |
The name of the runtime only dependencies configuration, used to declare dependencies
that should only be found at runtime.
|
static String |
SOURCES_ELEMENTS_CONFIGURATION_NAME |
The name of the sources elements configuration.
|
static String |
TEST_ANNOTATION_PROCESSOR_CONFIGURATION_NAME |
The name of the test annotation processor configuration.
|
static String |
TEST_CLASSES_TASK_NAME |
The name of the lifecycle task which outcome is that all test classes of a component are generated.
|
static String |
TEST_COMPILE_CLASSPATH_CONFIGURATION_NAME |
The name of the test compile classpath configuration.
|
static String |
TEST_COMPILE_ONLY_CONFIGURATION_NAME |
The name of the configuration that should be used to declare dependencies which are only required
to compile the tests, but not when running them.
|
static String |
TEST_IMPLEMENTATION_CONFIGURATION_NAME |
The name of the test implementation dependencies configuration.
|
static String |
TEST_RUNTIME_CLASSPATH_CONFIGURATION_NAME |
The name of the test runtime classpath configuration.
|
static String |
TEST_RUNTIME_ONLY_CONFIGURATION_NAME |
The name of the test runtime only dependencies configuration.
|
static String |
TEST_TASK_NAME |
The name of the task which triggers execution of tests.
|
Constructor | Description |
---|---|
JavaPlugin(ObjectFactory objectFactory,
SoftwareComponentFactory softwareComponentFactory,
org.gradle.api.plugins.jvm.internal.JvmPluginServices jvmServices) |
Modifier and Type | Method | Description |
---|---|---|
void |
apply(Project project) |
Apply this plugin to the given target object.
|
public static final String PROCESS_RESOURCES_TASK_NAME
public static final String CLASSES_TASK_NAME
public static final String COMPILE_JAVA_TASK_NAME
public static final String PROCESS_TEST_RESOURCES_TASK_NAME
public static final String TEST_CLASSES_TASK_NAME
public static final String COMPILE_TEST_JAVA_TASK_NAME
public static final String TEST_TASK_NAME
public static final String JAR_TASK_NAME
public static final String JAVADOC_TASK_NAME
public static final String API_CONFIGURATION_NAME
public static final String IMPLEMENTATION_CONFIGURATION_NAME
public static final String API_ELEMENTS_CONFIGURATION_NAME
public static final String COMPILE_ONLY_CONFIGURATION_NAME
public static final String COMPILE_ONLY_API_CONFIGURATION_NAME
public static final String RUNTIME_ONLY_CONFIGURATION_NAME
public static final String RUNTIME_CLASSPATH_CONFIGURATION_NAME
public static final String RUNTIME_ELEMENTS_CONFIGURATION_NAME
public static final String JAVADOC_ELEMENTS_CONFIGURATION_NAME
public static final String SOURCES_ELEMENTS_CONFIGURATION_NAME
public static final String COMPILE_CLASSPATH_CONFIGURATION_NAME
public static final String ANNOTATION_PROCESSOR_CONFIGURATION_NAME
public static final String TEST_IMPLEMENTATION_CONFIGURATION_NAME
public static final String TEST_COMPILE_ONLY_CONFIGURATION_NAME
public static final String TEST_RUNTIME_ONLY_CONFIGURATION_NAME
public static final String TEST_COMPILE_CLASSPATH_CONFIGURATION_NAME
public static final String TEST_ANNOTATION_PROCESSOR_CONFIGURATION_NAME
public static final String TEST_RUNTIME_CLASSPATH_CONFIGURATION_NAME
@Inject public JavaPlugin(ObjectFactory objectFactory, SoftwareComponentFactory softwareComponentFactory, org.gradle.api.plugins.jvm.internal.JvmPluginServices jvmServices)