All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.jhipster.lite.module.domain.javabuild.command.AddDirectJavaDependency Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package tech.jhipster.lite.module.domain.javabuild.command;

import java.util.Optional;
import tech.jhipster.lite.module.domain.javabuildprofile.BuildProfileId;
import tech.jhipster.lite.module.domain.javadependency.JavaDependency;
import tech.jhipster.lite.shared.error.domain.Assert;

public record AddDirectJavaDependency(JavaDependency dependency, Optional buildProfile)
  implements JavaBuildCommand, AddJavaDependency {
  public AddDirectJavaDependency {
    Assert.notNull("dependency", dependency);
    Assert.notNull("buildProfile", buildProfile);
  }

  public AddDirectJavaDependency(JavaDependency dependency) {
    this(dependency, Optional.empty());
  }

  public AddDirectJavaDependency(JavaDependency dependency, BuildProfileId buildProfile) {
    this(dependency, Optional.of(buildProfile));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy