@Incubating public interface JavaPluginExtension
JavaBasePlugin
.Modifier and Type | Method | Description |
---|---|---|
void |
disableAutoTargetJvm() |
If this method is called, Gradle will not automatically try to fetch
dependencies which have a JVM version compatible with the target compatibility
of this module.
|
JavaVersion |
getSourceCompatibility() |
Returns the source compatibility used for compiling Java sources.
|
JavaVersion |
getTargetCompatibility() |
Returns the target compatibility used for compiling Java sources.
|
void |
registerFeature(String name,
Action<? super FeatureSpec> configureAction) |
Registers a feature.
|
void |
setSourceCompatibility(JavaVersion value) |
Sets the source compatibility used for compiling Java sources.
|
void |
setTargetCompatibility(JavaVersion value) |
Sets the target compatibility used for compiling Java sources.
|
JavaVersion getSourceCompatibility()
void setSourceCompatibility(JavaVersion value)
value
- The value for the source compatibilityJavaVersion getTargetCompatibility()
void setTargetCompatibility(JavaVersion value)
value
- The value for the target compatibilityvoid registerFeature(String name, Action<? super FeatureSpec> configureAction)
name
- the name of the featureconfigureAction
- the configuration for the feature@Incubating void disableAutoTargetJvm()