tech.jhipster.lite.module.domain.javabuild.command.RemoveJavaDependencyManagement 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.DependencyId;
import tech.jhipster.lite.shared.error.domain.Assert;
public record RemoveJavaDependencyManagement(DependencyId dependency, Optional buildProfile) implements JavaBuildCommand {
public RemoveJavaDependencyManagement {
Assert.notNull("dependency", dependency);
Assert.notNull("buildProfile", buildProfile);
}
public RemoveJavaDependencyManagement(DependencyId dependency) {
this(dependency, Optional.empty());
}
public RemoveJavaDependencyManagement(DependencyId dependency, BuildProfileId buildProfile) {
this(dependency, Optional.of(buildProfile));
}
}