tech.jhipster.lite.module.domain.javabuild.command.AddJavaDependencyManagement Maven / Gradle / Ivy
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 AddJavaDependencyManagement(JavaDependency dependency, Optional buildProfile)
implements JavaBuildCommand, AddJavaDependency {
public AddJavaDependencyManagement {
Assert.notNull("dependency", dependency);
Assert.notNull("buildProfile", buildProfile);
}
public AddJavaDependencyManagement(JavaDependency dependency) {
this(dependency, Optional.empty());
}
public AddJavaDependencyManagement(JavaDependency dependency, BuildProfileId buildProfile) {
this(dependency, Optional.of(buildProfile));
}
}