java.lang.Object
io.micronaut.projectgen.core.buildtools.maven.Profile

public class Profile extends Object
Represents a Maven profile.
  • Constructor Details

    • Profile

      public Profile(@NonNull @NonNull String id, @Nullable @Nullable Set<Property> activationProperties, @Nullable @Nullable Set<Dependency> dependencies, @Nullable @Nullable Writable extension)
  • Method Details

    • getId

      @NonNull public @NonNull String getId()
      Returns:
      Profile ID
    • getExtension

      @Nullable public @Nullable Writable getExtension()
      Returns the extension used in the build plugin, if any.
      Returns:
      the extension or null if not set
    • getActivationProperties

      @Nullable public @Nullable Set<Property> getActivationProperties()
      Returns:
      Activation properties
    • getDependencies

      @Nullable public @Nullable Set<Dependency> getDependencies()
      Returns:
      Dependencies
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • builder

      public static Profile.Builder builder()
    • addActivationProperties

      public void addActivationProperties(@Nullable @Nullable Set<Property> activationProperties)
      Adds the specified activation properties to the existing set. If the current set is null, it will be initialized.
      Parameters:
      activationProperties - the activation properties to add, or null
    • addDependencies

      public void addDependencies(@Nullable @Nullable Set<Dependency> dependencies)
      Adds the specified dependencies to the existing set. If the current set is null, it will be initialized.
      Parameters:
      dependencies - the dependencies to add, or null