Package net.minecraftforge.gradleutils.shared


@Internal package net.minecraftforge.gradleutils.shared
This package contains common code that is shared between MinecraftForge's Gradle plugins. The purpose is to reduce duplicate code and keep the majority of complex implementation details here, instead of in the implementing plugins.

The majority of these implementations consist of "enhanced" types of existing Gradle types, which are extensions that include Forge-specific helper methods.

  • Class
    Description
    This class contains helper methods for creating closures in Java code.
    The enhanced plugin contains several helper members to assist in making Gradle plugins as clean as possible without needing to duplicate code across projects.
    The enhanced problems contain several base helper members to help reduce duplicate code between Gradle plugins.
    The enhanced task contains a handful of helper methods to make working with the enhanced plugin and caches easier.
    Lazy<T>
    This is a simple implementation of a Lazy value, primarily aimed for use in Java code.
    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).
    Shared utilities for Gradle plugins.
    Tools are definitions of Java libraries (may or may not be executable) that are managed by Gradle using a ValueSource.
    This tool execution task is a template on top of JavaExec to make executing tools much easier and more consistent between plugins.