Package net.kyori.indra.task
Class JDeps
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
net.kyori.indra.task.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 -
Method Summary
Modifier and TypeMethodDescriptionvoidargumentProvider(org.gradle.process.CommandLineArgumentProvider argumentProvider) voidexecute()Execute the task.Calculate all arguments for the task, using freeform arguments and argument providers.List<org.gradle.process.CommandLineArgumentProvider>Extra argument providers to generate jdeps arguments.abstract org.gradle.api.provider.ListProperty<String>Free-form arguments to pass tojdeps.protected abstract org.gradle.process.ExecOperationsabstract org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher>Set the Java instance to execute thejdepstool with.abstract org.gradle.api.file.ConfigurableFileCollectionGet the module path to pass to the JDeps tool.abstract org.gradle.api.provider.Property<Integer>Set the specific version to test against given a multi-release input jar.abstract org.gradle.api.file.ConfigurableFileCollectionClass files, directories, and/or JAR files to process.protected abstract org.gradle.jvm.toolchain.JavaToolchainServiceMethods 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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Constructor Details
-
JDeps
public JDeps()Create a new task instance.Not to be called directly
- Since:
- 2.1.0
-
-
Method Details
-
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 thejdepstool 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
Free-form arguments to pass tojdeps.- Returns:
- a list property of arguments to pass
- Since:
- 2.1.0
-
getArgumentProviders
Extra argument providers to generate jdeps arguments.- Returns:
- argument providers
- Since:
- 2.1.0
-
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
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
-