Index

A C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

action(Object, Action<? super T>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given action.
action(Action<? super T>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given action.
actionable(Closure<T>) - Static method in class net.minecraftforge.gradleutils.shared.Lazy
Creates an actionable lazy of the given closure.
actionable(Callable<T>) - Static method in class net.minecraftforge.gradleutils.shared.Lazy
Creates an actionable lazy of the given callable.
addArguments() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
This method should be overridden by subclasses to add arguments to this task via JavaExec.args(java.lang.Object...).
apply(T) - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
This method is used by Gradle to apply this plugin.
argOnlyIf(String, Provider<Boolean>) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
Adds the given argument if and only if the given boolean property is present and true.
argOnlyIf(String, Spec<? super ToolExecBase<?>>) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
Adds the given argument if and only if the given spec, using this task, is satisfied.
args(String, Iterable<? extends File>) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
Adds each file to the arguments preceded by the given argument.
args(String, FileSystemLocationProperty<? extends FileSystemLocation>) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
Adds the given argument followed by the given file location to the arguments.
args(String, Provider<?>) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
Adds the given argument followed by the given object (may be a file location) to the arguments.

C

call() - Method in class net.minecraftforge.gradleutils.shared.Lazy
 
callable(Object, Callable<? extends R>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given callable.
callable(Callable<? extends R>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given callable.
closure - Variable in class net.minecraftforge.gradleutils.shared.Lazy
The closure that will provide the value for this lazy.
Closures - Class in net.minecraftforge.gradleutils.shared
This class contains helper methods for creating closures in Java code.
configure(String, Action<? super Tool.Definition>) - Method in interface net.minecraftforge.gradleutils.shared.ToolsExtension
 
consumer(Object, Consumer<? super T>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given consumer.
consumer(Consumer<? super T>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given consumer.
contains(Throwable, String) - Static method in class net.minecraftforge.gradleutils.shared.EnhancedFlowAction
Checks if a given throwable's message contains the given string (ignoring case).
copy() - Method in class net.minecraftforge.gradleutils.shared.Lazy.Actionable
Copies this actionable lazy.

D

defaultToolDir - Variable in class net.minecraftforge.gradleutils.shared.ToolExecBase
The default tool directory (usage is not required).

E

empty() - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates an empty closure.
empty(Object) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates an empty closure.
EnhancedFlowAction<P> - Class in net.minecraftforge.gradleutils.shared
The enhanced flow action adds convenience methods to the standard flow action provided by Gradle.
EnhancedFlowAction() - Constructor for class net.minecraftforge.gradleutils.shared.EnhancedFlowAction
The base constructor for the flow action.
EnhancedFlowAction.EnhancedFlowParameters<P> - Class in net.minecraftforge.gradleutils.shared
EnhancedFlowParameters(Class<P>) - Constructor for class net.minecraftforge.gradleutils.shared.EnhancedFlowAction.EnhancedFlowParameters
The base constructor for the parameters.
EnhancedPlugin<T> - Class in net.minecraftforge.gradleutils.shared
The enhanced plugin contains several helper members to assist in making Gradle plugins as clean as possible without needing to duplicate code across projects.
EnhancedPlugin(String, String) - Constructor for class net.minecraftforge.gradleutils.shared.EnhancedPlugin
This constructor must be called by all subclasses using a public constructor annotated with Inject.
EnhancedPlugin(String, String, String) - Constructor for class net.minecraftforge.gradleutils.shared.EnhancedPlugin
This constructor must be called by all subclasses using a public constructor annotated with Inject.
EnhancedPluginAdditions - Interface in net.minecraftforge.gradleutils.shared
This interface defines the additional methods added by EnhancedPlugin.
EnhancedProblems - Class in net.minecraftforge.gradleutils.shared
The enhanced problems contain several base helper members to help reduce duplicate code between Gradle plugins.
EnhancedProblems(String, String) - Constructor for class net.minecraftforge.gradleutils.shared.EnhancedProblems
Creates a new enhanced problems instance using the given name and display name.
EnhancedTask - Interface in net.minecraftforge.gradleutils.shared
The enhanced task contains a handful of helper methods to make working with the enhanced plugin and caches easier.
ensureAfterEvaluate(Project, Closure<?>) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Runs the given closure using Project.afterEvaluate(Action).
ensureAfterEvaluate(Project, Action<? super Project>) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Runs the given action using Project.afterEvaluate(Action).
ensureFileLocation() - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
A utility method to ensure that a FileSystemLocation Provider has (its parent) directory created.
exec() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
execute(P) - Method in class net.minecraftforge.gradleutils.shared.EnhancedFlowAction
Executes this flow action.

F

finalizeProperty() - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Makes a returning-self closure that finalizes a given property using SharedUtil.finalizeProperty(Property).
finalizeProperty(P) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Finalizes the given property to prevent any additional changes from being made to it.
function(Object, Function<? super T, ? extends R>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given function.
function(Function<? super T, ? extends R>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given function.

G

get() - Method in class net.minecraftforge.gradleutils.shared.Lazy.Actionable
 
get() - Method in class net.minecraftforge.gradleutils.shared.Lazy
Gets (and resolves if absent) this lazy value.
getBuildLayout() - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
The build layout provided by Gradle services.
getClasspath() - Method in interface net.minecraftforge.gradleutils.shared.Tool.Definition
Gets the classpath to use for the tool.
getClasspath() - Method in interface net.minecraftforge.gradleutils.shared.Tool.Resolved
 
getDefaultOutputDirectory() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
The default output directory to use for this task if it outputs a directory.
getDefaultOutputFile() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
The default output file to use for this task if it outputs a file.
getDefaultOutputFile(String) - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
The default output file to use for this task if it outputs a file.
getDelegate() - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Gets the problems instance used by this enhanced problems.
getFailure() - Method in class net.minecraftforge.gradleutils.shared.EnhancedFlowAction.EnhancedFlowParameters
The failure that was thrown by Gradle.
getJavaLauncher() - Method in interface net.minecraftforge.gradleutils.shared.Tool.Definition
Gets the Java launcher used to run AccessTransformers.
getJavaLauncher() - Method in interface net.minecraftforge.gradleutils.shared.Tool.Resolved
Gets the Java launcher used to run AccessTransformers.
getJavaVersion() - Method in interface net.minecraftforge.gradleutils.shared.Tool
The Java version this tool was built with.
getLogger() - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Gets the logger to be used by this enhanced problems.
getMainClass() - Method in interface net.minecraftforge.gradleutils.shared.Tool.Definition
Gets the main class to invoke when running AccessTransformers.
getMainClass() - Method in interface net.minecraftforge.gradleutils.shared.Tool
The main class to use when executing this tool.
getName() - Method in interface net.minecraftforge.gradleutils.shared.Tool
The name for this tool.
getObjects() - Method in class net.minecraftforge.gradleutils.shared.EnhancedFlowAction.EnhancedFlowParameters
The object factory provided by Gradle services.
getObjects() - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
The object factory provided by Gradle services.
getPlugin() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
Deprecated.
This method is public only due to the limitations imposed by Java 8. Do not use this. Use Task.getProject() -> PluginAware.getPlugins() -> PluginContainer.getPlugin(Class).
getProblemGroup() - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Gets the problem group used by this enhanced problems.
getProblems() - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Deprecated.
Does not handle if Problems API cannot be accessed. Use EnhancedProblems.getDelegate().
getProblems() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
The enhanced problems instance to use for this task.
getProjectLayout() - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
The project layout provided by Gradle services.
getProjectLayout() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
The project layout provided by Gradle services.
getProviders() - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
The provider factory provided by Gradle services.
getProviders() - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
The provider factory provided by Gradle services.
getReporter() - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Gets the problem reporter used by the delegate problems instance.
getTool(Tool) - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
 
getTool(Tool) - Method in interface net.minecraftforge.gradleutils.shared.EnhancedPluginAdditions
Gets a provider to the file for a Tool to be used.
getTool(Tool) - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
 
getVersion() - Method in interface net.minecraftforge.gradleutils.shared.Tool
The version of this tool.
globalCaches() - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
 
globalCaches() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedPluginAdditions
Gets the global caches to be used for this plugin.
globalCaches() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
 

H

hasMainClass() - Method in interface net.minecraftforge.gradleutils.shared.Tool
If this tool has a strictly defined main class.
HELP_MESSAGE - Static variable in class net.minecraftforge.gradleutils.shared.EnhancedProblems
The common message to send in ProblemSpec.solution(String) when reporting problems.

I

id(String, String) - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Creates a problem ID to be used when reporting problems.
ifPresent(Action<? super T>) - Method in class net.minecraftforge.gradleutils.shared.Lazy
Runs the given action on this lazy value if it is present.
invoke(Closure) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Invokes a given closure with no parameters.
invoke(Closure, Object...) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Invokes a given closure with the given object as the delegate type and parameter.
isPresent() - Method in class net.minecraftforge.gradleutils.shared.Lazy.Actionable
Checks if this actionable lazy is present.
isPresent() - Method in class net.minecraftforge.gradleutils.shared.Lazy
Checks if this lazy value is present.

L

LAUNCHER_EXECUTABLE - Static variable in class net.minecraftforge.gradleutils.shared.SharedUtil
Transformer to map a Java launcher to its executable path.
launcherFor(Project, int) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Gets the Java launcher that can compile or run the given version.
launcherFor(Project, JavaLanguageVersion) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Gets the Java launcher that can compile or run the given version.
launcherForStrictly(Project, int) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Gets the Java launcher for the given version, even if the currently running Java toolchain is higher.
launcherForStrictly(Project, JavaLanguageVersion) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Gets the Java launcher for the given version, even if the currently running Java toolchain is higher.
launcherForStrictly(JavaToolchainService, int) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Gets the Java launcher for the given version, even if the currently running Java toolchain is higher.
launcherForStrictly(JavaToolchainService, JavaLanguageVersion) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Gets the Java launcher for the given version, even if the currently running Java toolchain is higher.
Lazy<T> - Class in net.minecraftforge.gradleutils.shared
This is a simple implementation of a Lazy value, primarily aimed for use in Java code.
Lazy.Actionable<T> - Class in net.minecraftforge.gradleutils.shared
Represents a lazily computed value with the ability to optionally work with it using Lazy.ifPresent(Action) and safely mutate it using Lazy.Actionable.map(Action).
localCaches() - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
 
localCaches() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedPluginAdditions
Gets the local caches to be used for this plugin.
localCaches() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
 

M

map(Action<? super T>) - Method in class net.minecraftforge.gradleutils.shared.Lazy.Actionable
Queues the given action to run on the value once it has been computed.

N

net.minecraftforge.gradleutils.shared - package net.minecraftforge.gradleutils.shared
This package contains common code that is shared between MinecraftForge's Gradle plugins.

O

of(String, String, String, int) - Static method in interface net.minecraftforge.gradleutils.shared.Tool
Creates a new tool with the given information.
of(String, String, String, int, String) - Static method in interface net.minecraftforge.gradleutils.shared.Tool
Creates a new tool with the given information.

P

pluginType() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
The enhanced plugin type for this task.
problems() - Method in class net.minecraftforge.gradleutils.shared.EnhancedFlowAction.EnhancedFlowParameters
The enhanced problems to be accessed in EnhancedFlowAction.run(EnhancedFlowParameters).

R

run(P) - Method in class net.minecraftforge.gradleutils.shared.EnhancedFlowAction
Runs this flow action.
runnable(Object, Runnable) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given runnable.
runnable(Runnable) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given runnable.

S

setOptional(Property<T>, Provider<? extends T>) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Conditionally set the given provider's value to the given property's value if the property is present.
setup(T) - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
Called when this plugin is applied to do setup work.
SharedUtil - Class in net.minecraftforge.gradleutils.shared
Shared utilities for Gradle plugins.
SharedUtil() - Constructor for class net.minecraftforge.gradleutils.shared.SharedUtil
Empty constructor.
simple(Closure<T>) - Static method in class net.minecraftforge.gradleutils.shared.Lazy
Creates a simple lazy of the given closure.
simple(Callable<T>) - Static method in class net.minecraftforge.gradleutils.shared.Lazy
Creates a simple lazy of the given callable.
supplier(Object, Supplier<? extends R>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given supplier.
supplier(Supplier<? extends R>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given supplier.

T

test(String) - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Checks if the given property exists and equals true.
testFalse(String) - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Checks if the given property exists and equals false.
toAction(Closure<?>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates an action backed by the given closure.
toLog(Consumer<? super String>) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Creates an output stream that logs to the given action.
Tool - Interface in net.minecraftforge.gradleutils.shared
Tools are definitions of Java libraries (may or may not be executable) that are managed by Gradle using a ValueSource.
Tool.Definition - Interface in net.minecraftforge.gradleutils.shared
 
Tool.Resolved - Interface in net.minecraftforge.gradleutils.shared
 
ToolExecBase<P> - Class in net.minecraftforge.gradleutils.shared
This tool execution task is a template on top of JavaExec to make executing tools much easier and more consistent between plugins.
ToolExecBase(Class<P>, Tool) - Constructor for class net.minecraftforge.gradleutils.shared.ToolExecBase
Creates a new task instance using the given types and tool information.
ToolsExtension - Interface in net.minecraftforge.gradleutils.shared
 
toString(Dependency) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Converts a given dependency to string.
toString(ModuleVersionSelector) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Converts a given module to string.

U

unaryOperator(Object, UnaryOperator<R>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given unary operator.
unaryOperator(UnaryOperator<R>) - Static method in class net.minecraftforge.gradleutils.shared.Closures
Creates a closure backed by the given unary operator.

V

value - Variable in class net.minecraftforge.gradleutils.shared.Lazy
The value of this lazy, will be null if it has not yet been computed with Lazy.get().

W

workingProjectDirectory() - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
 
workingProjectDirectory() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedPluginAdditions
Gets the working project directory to be used for this plugin.
workingProjectDirectory() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
 
A C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form