Class JDeps

  • All Implemented Interfaces:
    Comparable<org.gradle.api.Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Task, org.gradle.util.Configurable<org.gradle.api.Task>

    public abstract class JDeps
    extends org.gradle.api.DefaultTask
    Execute the jdeps tool.
    Since:
    2.1.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gradle.api.Task

        org.gradle.api.Task.Namer
    • Field Summary

      • Fields inherited from interface org.gradle.api.Task

        TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
    • Constructor Summary

      Constructors 
      Constructor Description
      JDeps()
      Create a new task instance.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void argumentProvider​(org.gradle.process.CommandLineArgumentProvider argumentProvider)  
      void execute()
      Execute the task.
      List<String> getAllArguments()
      Calculate all arguments for the task, using freeform arguments and argument providers.
      List<org.gradle.process.CommandLineArgumentProvider> getArgumentProviders()
      Extra argument providers to generate jdeps arguments.
      abstract org.gradle.api.provider.ListProperty<String> getArguments()
      Free-form arguments to pass to jdeps.
      protected abstract org.gradle.process.ExecOperations getExecOps()  
      abstract org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher> getJavaLauncher()
      Set the Java instance to execute the jdeps tool with.
      abstract org.gradle.api.file.ConfigurableFileCollection getModulePath()
      Get the module path to pass to the JDeps tool.
      abstract org.gradle.api.provider.Property<Integer> getMultireleaseVersion()
      Set the specific version to test against given a multi-release input jar.
      abstract org.gradle.api.file.ConfigurableFileCollection getProcessClasses()
      Class files, directories, and/or JAR files to process.
      protected abstract org.gradle.jvm.toolchain.JavaToolchainService getToolchains()  
      • Methods inherited from class org.gradle.api.DefaultTask

        compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
      • Methods inherited from class org.gradle.api.internal.AbstractTask

        appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
      • Methods inherited from interface org.gradle.api.Task

        doNotTrackState, getConvention, notCompatibleWithConfigurationCache
    • Constructor Detail

      • JDeps

        public JDeps()
        Create a new task instance.

        Not to be called directly

        Since:
        2.1.0
    • Method Detail

      • getModulePath

        @InputFiles
        public abstract org.gradle.api.file.ConfigurableFileCollection getModulePath()
        Get the module path to pass to the JDeps tool.
        Returns:
        a file collection representing the module path to pass to the tool
        Since:
        2.1.0
      • getJavaLauncher

        @Input
        public abstract org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher> getJavaLauncher()
        Set the Java instance to execute the jdeps tool with.
        Returns:
        a property pointing to the java launcher
        Since:
        2.1.0
      • getProcessClasses

        @Optional
        @InputFiles
        public abstract org.gradle.api.file.ConfigurableFileCollection getProcessClasses()
        Class files, directories, and/or JAR files to process.
        Returns:
        the collection
        Since:
        2.1.0
      • getArguments

        @Input
        @Optional
        public abstract org.gradle.api.provider.ListProperty<String> getArguments()
        Free-form arguments to pass to jdeps.
        Returns:
        a list property of arguments to pass
        Since:
        2.1.0
      • getArgumentProviders

        public List<org.gradle.process.CommandLineArgumentProvider> getArgumentProviders()
        Extra argument providers to generate jdeps arguments.
        Returns:
        argument providers
        Since:
        2.1.0
      • getMultireleaseVersion

        @Input
        @Optional
        public abstract org.gradle.api.provider.Property<Integer> getMultireleaseVersion()
        Set the specific version to test against given a multi-release input jar.
        Returns:
        the version to test against
        Since:
        2.1.0
      • argumentProvider

        public void argumentProvider​(org.gradle.process.CommandLineArgumentProvider argumentProvider)
      • getToolchains

        @Inject
        protected abstract org.gradle.jvm.toolchain.JavaToolchainService getToolchains()
      • getExecOps

        @Inject
        protected abstract org.gradle.process.ExecOperations getExecOps()
      • getAllArguments

        @Internal
        public List<String> getAllArguments()
        Calculate all arguments for the task, using freeform arguments and argument providers.
        Returns:
        all arguments
        Since:
        2.1.0
      • execute

        public void execute()
        Execute the task.
        Since:
        2.1.0