abstract class JavaBasePlugin : Plugin<T> (source)

A org.gradle.api.Plugin which compiles and tests Java source, and assembles it into a JAR file.

This plugin is automatically applied to most projects that build any JVM language source. It creates a JavaPluginExtension extension named java that is used to configure all jvm-related components in the project. It is responsible for configuring the conventions of any SourceSets that are present and used by (for example) the Java, Groovy, or Kotlin plugins.

See also

<a href="">Java plugin reference</a>


Link copied to clipboard
constructor(objectFactory: ObjectFactory, jvmPluginServices: JvmPluginServices)


Link copied to clipboard
val BUILD_DEPENDENTS_TASK_NAME: String = "buildDependents"
Link copied to clipboard
val BUILD_NEEDED_TASK_NAME: String = "buildNeeded"
Link copied to clipboard
val BUILD_TASK_NAME: String = "build"
Link copied to clipboard
val CHECK_TASK_NAME: String = "check"
Set this property to use JARs build from subprojects, instead of the classes folder from these project, on the compile classpath.
Link copied to clipboard
val DOCUMENTATION_GROUP: String = "documentation"
Task group name for documentation-related tasks.
Link copied to clipboard
A list of known artifact types which are known to prevent from publication.
Link copied to clipboard
val VERIFICATION_GROUP: String = "verification"


Link copied to clipboard
open fun apply(project: Project)