/** * Checks if given dependency is defined. * @param groupId of dependency. * @param artifactId of dependency. If null, check if there is any dependency with the given group * @return True if present, false otherwise. */ default boolean hasDependency(String groupId, String artifactId) { return getDependencyVersion(groupId, artifactId).isPresent(); }
protected Probe buildProbe(Properties springBootProperties, Integer initialDelay, Integer period, Integer timeout, Integer failureTh, Integer successTh) { SpringBootConfigurationHelper propertyHelper = new SpringBootConfigurationHelper(getContext().getDependencyVersion(SpringBootConfigurationHelper.SPRING_BOOT_GROUP_ID, SpringBootConfigurationHelper.SPRING_BOOT_ARTIFACT_ID)); Integer managementPort = propertyHelper.getManagementPort(springBootProperties); boolean usingManagementPort = managementPort != null;