Class LocalModule

java.lang.Object
org.gradlex.javamodule.dependencies.LocalModule
All Implemented Interfaces:
Serializable, Comparable<LocalModule>

@NullMarked public class LocalModule extends Object implements Comparable<LocalModule>, Serializable
See Also:
  • Constructor Details

    • LocalModule

      public LocalModule(String moduleName, String projectPath, @Nullable String capability)
  • Method Details

    • getModuleName

      public String getModuleName()
      Returns:
      the module name as defined in the module-info.java file, e.g. 'org.example.module-a'
    • getProjectPath

      public String getProjectPath()
      Returns:
      the full Gradle project path for the subproject defining the module, e.g. ':module-a'
    • getCapability

      public @Nullable String getCapability()
      Returns:
      the capability to address the module in a dependency if it is not in the 'main' source set, e.g. 'org.example:module-a-test-fixtures'
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(LocalModule o)
      Specified by:
      compareTo in interface Comparable<LocalModule>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object