Interface CheckableComponentSpec

All Superinterfaces:
ComponentSpec, ModelElement, Named
All Known Subinterfaces:
ApplicationBinarySpec, BinarySpec, ClassDirectoryBinarySpec, CUnitTestSuiteBinarySpec, GoogleTestTestSuiteBinarySpec, JarBinarySpec, JUnitTestSuiteBinarySpec, JvmBinarySpec, JvmTestSuiteBinarySpec, LibraryBinarySpec, NativeBinarySpec, NativeExecutableBinarySpec, NativeLibraryBinarySpec, NativeTestSuiteBinarySpec, PlayApplicationBinarySpec, SharedLibraryBinarySpec, StaticLibraryBinarySpec, TestSuiteBinarySpec
All Known Implementing Classes:
org.gradle.api.internal.AbstractBuildableComponentSpec, org.gradle.language.base.internal.AbstractLanguageSourceSet, BaseBinarySpec, BaseLanguageSourceSet

@Incubating public interface CheckableComponentSpec extends ComponentSpec
A ComponentSpec that is directly checkable via a specified task.
  • Method Details

    • getCheckTask

      @Nullable Task getCheckTask()
      Returns the task responsible for checking this component.
    • setCheckTask

      void setCheckTask(Task checkTask)
      Specifies the task responsible for checking this component.
    • checkedBy

      void checkedBy(Object... tasks)
      Adds tasks required to check this component. Tasks added this way are subsequently added as dependencies of this component's check task.