java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.io.SettingsFileIO

public final class SettingsFileIO extends Object
Utility class for settings file I/O.
  • Method Details

    • writeProjectNameIfNeeded

      public static String writeProjectNameIfNeeded(File rootDir) throws IOException
      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 directory
      dokkaVersion - the Dokka plugin version
      Throws:
      IOException - if an error occurs