Class OldGradleEmulationModule
java.lang.Object
com.gtnewhorizons.gtnhgradle.modules.OldGradleEmulationModule
- All Implemented Interfaces:
GTNHModule
Emulates various old gradle version behaviours for backwards compatibility - HTTP protocol support, "compile"
configuration, etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull Project project) Activates this module on the given project.booleanisEnabled(@NotNull PropertiesConfiguration configuration)
-
Constructor Details
-
OldGradleEmulationModule
public OldGradleEmulationModule()
-
-
Method Details
-
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
-