Index

A C D E F G H I J 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.
args(Iterable<?>) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
args(Object...) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
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.
args(Map<?, ?>) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
Adds the given map of arguments.

C

call() - Method in class net.minecraftforge.gradleutils.shared.Lazy
 
call() - Method in interface net.minecraftforge.gradleutils.shared.Tool.Resolved
 
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.
collect(ConfigurationContainer, SourceSet, boolean, Predicate<? super Dependency>) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Checks if the given dependency is in the given source set.
configure(String, Action<? super Tool.Definition>) - Method in interface net.minecraftforge.gradleutils.shared.ToolsExtension
Configures the definition of the given tool by its name.
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).
contains(ConfigurationContainer, SourceSet, boolean, Dependency) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Checks if the given dependency is in the given source set.
contains(ConfigurationContainer, SourceSet, boolean, Spec<? super Dependency>) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Checks if the given dependency is in the given source set.
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<P> - 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.
environment(String, String) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
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.
forEach(DomainObjectCollection<T>, Action<? super T>) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
 
forEachClasspath(ConfigurationContainer, SourceSet, Action<? super Configuration>) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
 
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.
getAdditionalArgs() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
Additional arguments to use when invoking the tool.
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
Gets the classpath containing the tool to be used.
getClasspath() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
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.
getExecOperations() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
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.
getJavaLauncher() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
getJavaToolchains() - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
The Java toolchain service provided by Gradle services.
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.
getLogging() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
Deprecated.
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.
getMainClass() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
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.
getObjects() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
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.
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.
getProviders() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
getReporter() - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Deprecated, for removal: This API element is subject to removal in a future version.
getStandardErrorLogLevel() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
getStandardOutputLogLevel() - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
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
Deprecated, for removal: This API element is subject to removal in a future version.
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.

J

jvmArgs(Iterable<?>) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 
jvmArgs(Object...) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 

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).
problemsType() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
The enhanced problems type for this task.

R

report(String, String, Action<? super ProblemSpec>) - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Reports an issue using the give name and display name as the ProblemId and the given spec to create the Problem.
rootProjectDirectory() - Method in class net.minecraftforge.gradleutils.shared.EnhancedPlugin
 
rootProjectDirectory() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedPluginAdditions
Gets the root project directory to be used for this plugin.
rootProjectDirectory() - Method in interface net.minecraftforge.gradleutils.shared.EnhancedTask
 
run(P) - Method in class net.minecraftforge.gradleutils.shared.EnhancedFlowAction
Runs this flow action.
runFirst(Project, T) - Static method in class net.minecraftforge.gradleutils.shared.SharedUtil
Ensures that a given task is run first in the task graph for the given project.
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.
systemProperty(String, String) - Method in class net.minecraftforge.gradleutils.shared.ToolExecBase
 

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.
throwing(Throwable, String, String, Action<? super ProblemSpec>) - Method in class net.minecraftforge.gradleutils.shared.EnhancedProblems
Reports an issue much like EnhancedProblems.report(String, String, Action), but also returns the given exception to be thrown by the calling class.
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.
toLog(Logger, LogLevel) - 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
A definition of how a tool should be resolved and used by the plugin.
Tool.Resolved - Interface in net.minecraftforge.gradleutils.shared
A resolved tool that has a classpath that can be readily used.
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(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
This extension can be optionally enabled by implementing plugins to allow buildscript authors to drop-in replace, or otherwise customize, the tools that are used by this plugin.
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 J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form