Class PropertiesConfiguration.GradleUtils
java.lang.Object
com.gtnewhorizons.gtnhgradle.PropertiesConfiguration.GradleUtils
- Enclosing class:
PropertiesConfiguration
Separate factory functions for
PropertiesConfiguration construction to allow isolated loading of the
parent class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesConfigurationmakePropertiesFrom(Settings settings) Fills properties from the root directory's gradle.properties file and command line "-P" properties.static PropertiesConfigurationmakePropertiesFrom(Project project) Fills properties from the current project's state.
-
Constructor Details
-
GradleUtils
public GradleUtils()
-
-
Method Details
-
makePropertiesFrom
Fills properties from the root directory's gradle.properties file and command line "-P" properties.- Parameters:
settings- The GradleSettingsobject, from a settings pluginPlugin.apply(Object)parameter- Returns:
- The initialized properties
-
makePropertiesFrom
Fills properties from the current project's state.- Parameters:
project- The GradleProjectto read the properties from.- Returns:
- The initialized properties
-