JavaBasePlugin

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="https://docs.gradle.org/current/userguide/java_plugin.html">Java plugin reference</a>

Constructors

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

Properties

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"
val COMPILE_CLASSPATH_PACKAGING_SYSTEM_PROPERTY: String = "org.gradle.java.compile-classpath-packaging"
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"

Functions

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