JavaPluginConvention

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

Link copied to clipboard
constructor()

Functions

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.
Link copied to clipboard
Tells if automatic JVM targeting is enabled.
Link copied to clipboard
abstract fun getDocsDir(): File
Returns a file pointing to the root directory supposed to be used for all docs.
Link copied to clipboard
abstract fun getDocsDirName(): String
The name of the docs directory.
Link copied to clipboard
abstract fun getProject(): ProjectInternal
Link copied to clipboard
Returns the source compatibility used for compiling Java sources.
Link copied to clipboard
The source sets container.
Link copied to clipboard
Returns the target compatibility used for compiling Java sources.
Link copied to clipboard
abstract fun getTestReportDir(): File
Returns a file pointing to the root directory to be used for reports.
Link copied to clipboard
The name of the test reports directory.
Link copied to clipboard
abstract fun getTestResultsDir(): File
Returns a file pointing to the root directory of the test results.
Link copied to clipboard
The name of the test results directory.
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.
Link copied to clipboard
abstract fun setDocsDirName(docsDirName: String)
Link copied to clipboard
abstract fun setSourceCompatibility(value: Any)
abstract fun setSourceCompatibility(value: JavaVersion)
Sets the source compatibility used for compiling Java sources.
Link copied to clipboard
abstract fun setTargetCompatibility(value: Any)
abstract fun setTargetCompatibility(value: JavaVersion)
Sets the target compatibility used for compiling Java sources.
Link copied to clipboard
abstract fun setTestReportDirName(testReportDirName: String)
Link copied to clipboard
abstract fun setTestResultsDirName(testResultsDirName: String)
Link copied to clipboard
abstract fun sourceSets(closure: Closure): Any
Configures the source sets of this project.