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 TypeMethodDescriptionvoidapply(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull Project project) Activates this module on the given project.abstract MapProperty<String, String> abstract JavaToolchainServicebooleanisEnabled(@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:
isEnabledin 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:GTNHModuleActivates this module on the given project.- Specified by:
applyin 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
-