Class ToolchainModule
java.lang.Object
com.gtnewhorizons.gtnhgradle.modules.ToolchainModule
- All Implemented Interfaces:
GTNHModule
Configures the Java/Scala/Kotlin toolchain settings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull Project project) Activates this module on the given project.abstract MapProperty
<String, String> abstract JavaToolchainService
boolean
isEnabled
(@NotNull PropertiesConfiguration configuration)
-
Constructor Details
-
ToolchainModule
@Inject public ToolchainModule()For dependency injection
-
-
Method Details
-
getToolchainService
- Returns:
- Gradle-provided
-
getMcmodInfoProperties
- Returns:
- mcmod.info properties expanded by the Groovy template engine
-
isEnabled
- Specified by:
isEnabled
in interfaceGTNHModule
- Parameters:
configuration
- The project configuration- Returns:
- If this module should be enabled for the input project settings
-
apply
public void apply(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull @NotNull Project project) throws Throwable Description copied from interface:GTNHModule
Activates this module on the given project.- Specified by:
apply
in interfaceGTNHModule
- Parameters:
gtnh
- The GTNH extension providing access to various gradle services and configurationproject
- The project to activate the module on- Throws:
Throwable
- Any exception to allow easier module writing
-