Class ModuleUtils

java.lang.Object
custom_jfx_plugin.utils.ModuleUtils

public final class ModuleUtils extends Object
  • Method Details

    • resolveAndCleanModules

      @NotNull public static @NotNull Set<JfxModule> resolveAndCleanModules(@NotNull @NotNull Collection<JfxModule> modules)
      Resolve all valid modules
      Parameters:
      modules - the modules to inspect
      Returns:
      a set with all modules
    • resolveAndCleanModules

      @NotNull public static @NotNull Set<JfxModule> resolveAndCleanModules(JfxModule... modules)
      Resolve all valid modules
      Parameters:
      modules - the modules to inspect
      Returns:
      a set with all modules
    • resolveModuleName

      @NotNull public static @NotNull String resolveModuleName(@NotNull @NotNull JfxModule module)
      Resolve java module name
      Parameters:
      module - the JfxModule to resolve
      Returns:
      the java module name
    • resolveModuleJarName

      @NotNull public static @NotNull String resolveModuleJarName(@NotNull @NotNull JfxModule module)
      Resolve java module jar name
      Parameters:
      module - the JfxModule to resolve
      Returns:
      the java jar module name
    • resolveArtifacts

      @NotNull public static @NotNull Set<String> resolveArtifacts(String version, Collection<JfxModule> modules)
      Resolve multiple modules and dependencies
      Parameters:
      modules - the modules to resolve
      Returns:
      a set with all formatted artifacts
    • resolveArtifactName

      @NotNull public static @NotNull String resolveArtifactName(@NotNull @NotNull JfxModule module)
      Resolve only the artifact name
      Parameters:
      module - the module to resolve
      Returns:
      the artifact name
    • resolveArtifact

      @NotNull public static @NotNull String resolveArtifact(@NotNull @NotNull JfxModule module)
      Resolve the module artifact with dependencies
      Parameters:
      module - the module to resolve
      Returns:
      a formatted artifact
    • getPlatformArtifactConfig

      @NotNull public static @NotNull ushiosan.jvm_utilities.lang.collection.elements.Pair<String,String> getPlatformArtifactConfig(@NotNull @NotNull ushiosan.jvm_utilities.system.Platform platform, @NotNull @NotNull ushiosan.jvm_utilities.system.Arch arch)
      Returns the artifact configuration depending on the platform and architecture
      Parameters:
      platform - the target configuration platform
      arch - the target configuration architecture
      Returns:
      the artifact configuration
    • checkJavaFxDependency

      public static boolean checkJavaFxDependency(@NotNull @NotNull org.gradle.api.artifacts.Dependency dependency)
      Check if dependency is a javafx dependency
      Parameters:
      dependency - the dependency to check
      Returns:
      true if dependency is a javafx element or false otherwise
    • compareJfxFile

      public static boolean compareJfxFile(@NotNull @NotNull File file, @NotNull @NotNull JfxModule module, @NotNull @NotNull ushiosan.jvm_utilities.system.Platform platform, @NotNull @NotNull ushiosan.jvm_utilities.system.Arch arch)
      Check if classpath file is a valid jfx jar file
      Parameters:
      file - the file to inspect
      module - the module to check
      platform - target platform
      arch - target architecture
      Returns:
      true if the file is a valid jfx file or false otherwise
    • compareAnyJfxFile

      public static boolean compareAnyJfxFile(@NotNull @NotNull File file)
      Check if classpath file is a valid jfx jar file
      Parameters:
      file - the file to inspect
      Returns:
      true if the file is a valid jfx file or false otherwise