Class JavaBasePlugin

java.lang.Object
org.gradle.api.plugins.JavaBasePlugin
All Implemented Interfaces:
Plugin<org.gradle.api.internal.project.ProjectInternal>

public class JavaBasePlugin extends Object implements Plugin<org.gradle.api.internal.project.ProjectInternal>

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

  • Field Details

    • CHECK_TASK_NAME

      public static final String CHECK_TASK_NAME
      See Also:
    • VERIFICATION_GROUP

      public static final String VERIFICATION_GROUP
      See Also:
    • BUILD_TASK_NAME

      public static final String BUILD_TASK_NAME
      See Also:
    • BUILD_DEPENDENTS_TASK_NAME

      public static final String BUILD_DEPENDENTS_TASK_NAME
      See Also:
    • BUILD_NEEDED_TASK_NAME

      public static final String BUILD_NEEDED_TASK_NAME
      See Also:
    • DOCUMENTATION_GROUP

      public static final String DOCUMENTATION_GROUP
      See Also:
    • COMPILE_CLASSPATH_PACKAGING_SYSTEM_PROPERTY

      @Incubating public static final String COMPILE_CLASSPATH_PACKAGING_SYSTEM_PROPERTY
      Set this property to use JARs build from subprojects, instead of the classes folder from these project, on the compile classpath. The main use case for this is to mitigate performance issues on very large multi-projects building on Windows. Setting this property will cause the 'jar' task of all subprojects in the dependency tree to always run during compilation.
      Since:
      5.6
      See Also:
    • UNPUBLISHABLE_VARIANT_ARTIFACTS

      @Incubating public static final Set<String> UNPUBLISHABLE_VARIANT_ARTIFACTS
      A list of known artifact types which are known to prevent from publication.
      Since:
      5.3
  • Constructor Details

    • JavaBasePlugin

      @Inject public JavaBasePlugin(ObjectFactory objectFactory)
  • Method Details

    • apply

      public void apply(org.gradle.api.internal.project.ProjectInternal project)
      Description copied from interface: Plugin
      Apply this plugin to the given target object.
      Specified by:
      apply in interface Plugin<org.gradle.api.internal.project.ProjectInternal>
      Parameters:
      project - The target object