# JavaPluginConvention

abstract class JavaPluginConvention(source)

### Deprecated

Is mixed into the project when applying the org.gradle.api.plugins.JavaBasePlugin.

#### Deprecated

Replaced by JavaPluginExtension. This class is scheduled for removal in Gradle 9.0.

## Constructors

JavaPluginConvention
Link copied to clipboard
constructor()

## Functions

disableAutoTargetJvm
Link copied to clipboard
abstract fun disableAutoTargetJvm()
If this method is called, Gradle will not automatically try to fetch dependencies which have a JVM version compatible with this module.
getAutoTargetJvmDisabled
Link copied to clipboard
abstract fun getAutoTargetJvmDisabled(): Boolean
Tells if automatic JVM targeting is enabled.
getDocsDir
Link copied to clipboard
abstract fun getDocsDir(): File
Returns a file pointing to the root directory supposed to be used for all docs.
getDocsDirName
Link copied to clipboard
abstract fun getDocsDirName(): String
The name of the docs directory.
getProject
Link copied to clipboard
abstract fun getProject(): ProjectInternal
getSourceCompatibility
Link copied to clipboard
abstract fun getSourceCompatibility(): JavaVersion
Returns the source compatibility used for compiling Java sources.
getSourceSets
Link copied to clipboard
abstract fun getSourceSets(): SourceSetContainer
The source sets container.
getTargetCompatibility
Link copied to clipboard
abstract fun getTargetCompatibility(): JavaVersion
Returns the target compatibility used for compiling Java sources.
getTestReportDir
Link copied to clipboard
abstract fun getTestReportDir(): File
Returns a file pointing to the root directory to be used for reports.
getTestReportDirName
Link copied to clipboard
abstract fun getTestReportDirName(): String
The name of the test reports directory.
getTestResultsDir
Link copied to clipboard
abstract fun getTestResultsDir(): File
Returns a file pointing to the root directory of the test results.
getTestResultsDirName
Link copied to clipboard
abstract fun getTestResultsDirName(): String
The name of the test results directory.
manifest
Link copied to clipboard
abstract fun manifest(): Manifest
Creates a new instance of a Manifest.
abstract fun manifest(@DelegatesTo(value = Manifest::class) closure: Closure): Manifest
abstract fun manifest(action: Action<in Manifest>): Manifest
Creates and configures a new instance of a Manifest.
setDocsDirName
Link copied to clipboard
abstract fun setDocsDirName(docsDirName: String)
setSourceCompatibility
Link copied to clipboard
abstract fun setSourceCompatibility(value: Any)
abstract fun setSourceCompatibility(value: JavaVersion)
Sets the source compatibility used for compiling Java sources.
setTargetCompatibility
Link copied to clipboard
abstract fun setTargetCompatibility(value: Any)
abstract fun setTargetCompatibility(value: JavaVersion)
Sets the target compatibility used for compiling Java sources.
setTestReportDirName
Link copied to clipboard
abstract fun setTestReportDirName(testReportDirName: String)
setTestResultsDirName
Link copied to clipboard
abstract fun setTestResultsDirName(testResultsDirName: String)
sourceSets
Link copied to clipboard
abstract fun sourceSets(closure: Closure): Any
Configures the source sets of this project.