Package org.gradle.api.plugins
Class JavaPluginConvention
java.lang.Object
org.gradle.api.plugins.JavaPluginConvention
Deprecated.
Is mixed into the project when applying the 
JavaBasePlugin.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidDeprecated.If this method is called, Gradle will not automatically try to fetch dependencies which have a JVM version compatible with this module.abstract booleanDeprecated.Tells if automatic JVM targeting is enabled.abstract FileDeprecated.Returns a file pointing to the root directory supposed to be used for all docs.abstract StringDeprecated.The name of the docs directory.abstract org.gradle.api.internal.project.ProjectInternalDeprecated.abstract JavaVersionDeprecated.Returns the source compatibility used for compiling Java sources.abstract SourceSetContainerDeprecated.The source sets container.abstract JavaVersionDeprecated.Returns the target compatibility used for compiling Java sources.abstract FileDeprecated.Returns a file pointing to the root directory to be used for reports.abstract StringDeprecated.The name of the test reports directory.abstract FileDeprecated.Returns a file pointing to the root directory of the test results.abstract StringDeprecated.The name of the test results directory.abstract Manifestmanifest()Deprecated.Creates a new instance of aManifest.abstract ManifestDeprecated.Creates and configures a new instance of aManifest.abstract ManifestDeprecated.Creates and configures a new instance of aManifest.abstract voidsetDocsDirName(String docsDirName) Deprecated.abstract voidsetSourceCompatibility(Object value) Deprecated.Sets the source compatibility used for compiling Java sources.abstract voidDeprecated.Sets the source compatibility used for compiling Java sources.abstract voidsetTargetCompatibility(Object value) Deprecated.Sets the target compatibility used for compiling Java sources.abstract voidDeprecated.Sets the target compatibility used for compiling Java sources.abstract voidsetTestReportDirName(String testReportDirName) Deprecated.abstract voidsetTestResultsDirName(String testResultsDirName) Deprecated.abstract ObjectsourceSets(Closure closure) Deprecated.Configures the source sets of this project.
- 
Constructor Details- 
JavaPluginConventionpublic JavaPluginConvention()Deprecated.
 
- 
- 
Method Details- 
sourceSetsDeprecated.Configures the source sets of this project.The given closure is executed to configure the SourceSetContainer. TheSourceSetContaineris passed to the closure as its delegate.See the example below how SourceSet'main' is accessed and how theSourceDirectorySet'java' is configured to exclude some package from compilation.plugins { id 'java' } sourceSets { main { java { exclude 'some/unwanted/package/**' } } }- Parameters:
- closure- The closure to execute.
- Returns:
- NamedDomainObjectContainer<org.gradle.api.tasks.SourceSet>
 
- 
getDocsDirDeprecated.Returns a file pointing to the root directory supposed to be used for all docs.
- 
getTestResultsDirDeprecated.Returns a file pointing to the root directory of the test results.
- 
getTestReportDirDeprecated.Returns a file pointing to the root directory to be used for reports.
- 
getSourceCompatibilityDeprecated.Returns the source compatibility used for compiling Java sources.
- 
setSourceCompatibilityDeprecated.Sets the source compatibility used for compiling Java sources.- Parameters:
- value- The value for the source compatibility as defined by- JavaVersion.toVersion(Object)
 
- 
setSourceCompatibilityDeprecated.Sets the source compatibility used for compiling Java sources.- Parameters:
- value- The value for the source compatibility
 
- 
getTargetCompatibilityDeprecated.Returns the target compatibility used for compiling Java sources.
- 
setTargetCompatibilityDeprecated.Sets the target compatibility used for compiling Java sources.- Parameters:
- value- The value for the target compatibility as defined by- JavaVersion.toVersion(Object)
 
- 
setTargetCompatibilityDeprecated.Sets the target compatibility used for compiling Java sources.- Parameters:
- value- The value for the target compatibility
 
- 
manifestDeprecated.Creates a new instance of aManifest.
- 
manifestDeprecated.Creates and configures a new instance of aManifest. The given closure configures the new manifest instance before it is returned.- Parameters:
- closure- The closure to use to configure the manifest.
 
- 
manifestDeprecated.Creates and configures a new instance of aManifest.- Parameters:
- action- The action to use to configure the manifest.
- Since:
- 3.5
 
- 
getDocsDirNameDeprecated.The name of the docs directory. Can be a name or a path relative to the build dir.
- 
setDocsDirNameDeprecated.
- 
getTestResultsDirNameDeprecated.The name of the test results directory. Can be a name or a path relative to the build dir.
- 
setTestResultsDirNameDeprecated.
- 
getTestReportDirNameDeprecated.The name of the test reports directory. Can be a name or a path relative toReportingExtension.getBaseDir().
- 
setTestReportDirNameDeprecated.
- 
getSourceSetsDeprecated.The source sets container.
- 
getProjectpublic abstract org.gradle.api.internal.project.ProjectInternal getProject()Deprecated.
- 
disableAutoTargetJvmpublic abstract void disableAutoTargetJvm()Deprecated.If this method is called, Gradle will not automatically try to fetch dependencies which have a JVM version compatible with this module. This should be used whenever the default behavior is not applicable, in particular when for some reason it's not possible to split a module and that this module only has some classes which require dependencies on higher versions.- Since:
- 5.3
 
- 
getAutoTargetJvmDisabledpublic abstract boolean getAutoTargetJvmDisabled()Deprecated.Tells if automatic JVM targeting is enabled. When disabled, Gradle will not automatically try to get dependencies corresponding to the same (or compatible) level as the target compatibility of this module.- Since:
- 5.3
 
 
- 
JavaPluginExtension. This class is scheduled for removal in Gradle 9.0.