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

tech.jhipster.lite.module.domain.javadependency.DirectJavaDependency 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 DirectJavaDependency extends JavaDependencyCommandsCreator {

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

  @Override
  protected Collection dependencyCommands(
    ProjectJavaDependencies projectDependencies,
    Optional buildProfile
  ) {
    return dependency()
      .dependencyCommands(DependenciesCommandsFactory.DIRECT, projectDependencies.dependency(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