Interface Tool.Resolved

All Superinterfaces:
Callable<org.gradle.api.file.FileCollection>, org.gradle.api.Named, Serializable, Tool
Enclosing interface:
Tool

public static sealed interface Tool.Resolved extends Tool, Callable<org.gradle.api.file.FileCollection>

A resolved tool that has a classpath that can be readily used.

This interface extends Callable<FileCollection> so that it can be used directly in methods such as Project.files(Object...) and ConfigurableFileCollection.from(Object...).

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gradle.api.Named

    org.gradle.api.Named.Namer

    Nested classes/interfaces inherited from interface net.minecraftforge.gradleutils.shared.Tool

    Tool.Definition, Tool.Resolved
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.gradle.api.file.FileCollection
     
    org.gradle.api.file.FileCollection
    Gets the classpath containing the tool to be used.
    org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher>
    Gets the Java launcher used to run AccessTransformers.

    Methods inherited from interface net.minecraftforge.gradleutils.shared.Tool

    getJavaVersion, getMainClass, getName, getVersion, hasMainClass
  • Method Details

    • call

      default org.gradle.api.file.FileCollection call()
      Specified by:
      call in interface Callable<org.gradle.api.file.FileCollection>
    • getClasspath

      org.gradle.api.file.FileCollection getClasspath()
      Gets the classpath containing the tool to be used.
      Returns:
      The classpath of the resolved tool
    • getJavaLauncher

      org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher> getJavaLauncher()

      Gets the Java launcher used to run AccessTransformers.

      This can be easily acquired using Java toolchains.

      Returns:
      The property for the Java launcher
      See Also:
      • JavaToolchainService.launcherFor(Action)