Class SettingsFileIO
java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.io.SettingsFileIO
Utility class for settings file I/O.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteDokkaSettings(File rootProject, org.jboss.pnc.gradlemanipulator.common.utils.PluginUtils.DokkaVersion dokkaVersion) If the DokkaVersion is less than or equal to 0.9.18 then this should inject the appropriate resolutionStrategy into the settings.gradlestatic StringwriteProjectNameIfNeeded(File rootDir) Writes the project name if needed.
-
Method Details
-
writeProjectNameIfNeeded
Writes the project name if needed.- Parameters:
rootDir- the root directory of the settings file- Returns:
- the new project name
- Throws:
IOException- if an error occurs while writing the settings file
-
writeDokkaSettings
public static void writeDokkaSettings(File rootProject, org.jboss.pnc.gradlemanipulator.common.utils.PluginUtils.DokkaVersion dokkaVersion) throws IOException If the DokkaVersion is less than or equal to 0.9.18 then this should inject the appropriate resolutionStrategy into the settings.gradle- Parameters:
rootProject- the root directorydokkaVersion- the Dokka plugin version- Throws:
IOException- if an error occurs
-