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

tech.jhipster.lite.module.domain.javadependency.JavaDependencyManagement Maven / Gradle / Ivy

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

import java.util.Collection;
import java.util.Optional;
import tech.jhipster.lite.module.domain.javabuild.command.JavaBuildCommand;
import tech.jhipster.lite.module.domain.javabuildprofile.BuildProfileId;

public final class JavaDependencyManagement extends JavaDependencyCommandsCreator {

  JavaDependencyManagement(JavaDependency dependency) {
    super(dependency);
  }

  @Override
  protected Collection dependencyCommands(
    ProjectJavaDependencies projectDependencies,
    Optional buildProfile
  ) {
    return dependency()
      .dependencyCommands(
        DependenciesCommandsFactory.MANAGEMENT,
        projectDependencies.dependencyManagement(dependency().id()),
        buildProfile
      );
  }

  @Override
  protected Collection versionCommands(
    JavaDependenciesVersions currentVersions,
    ProjectJavaDependencies projectDependencies,
    Optional buildProfile
  ) {
    return dependency().versionCommands(currentVersions, projectDependencies, dependencyCommands(projectDependencies, buildProfile));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy