Skip to content

Commit

Permalink
Fixed pom dependency issues. ConditionalOnClass using HealthCommand c…
Browse files Browse the repository at this point in the history
…hanged to AbstractHealthIndicator instead of CompositeHealthIndicatorConfiguration as the latter is not part of 2.0.0-BUILD-SNAPSHOT anymore.
  • Loading branch information
anand1st committed Aug 17, 2017
1 parent fee19e0 commit 3441af5
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 7 deletions.
65 changes: 60 additions & 5 deletions sshd-shell-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,48 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.anand1st</groupId>
<artifactId>sshd-shell-spring-boot-parent</artifactId>
<version>2.1-SNAPSHOT</version>
</parent>
<groupId>io.github.anand1st</groupId>
<artifactId>sshd-shell-spring-boot-starter</artifactId>
<version>2.1</version>
<name>SSH Shell starter for Spring Boot Application</name>
<description>
This artifact is a spring boot starter that provides SSH access to spring boot applications. It is to be used
primarily by developers who want to roll out custom shell commands for various purposes.
</description>
<url>https://github.com/anand1st/sshd-shell-spring-boot</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/anand1st/sshd-shell-spring-boot.git</url>
</scm>
<developers>
<developer>
<name>Nithyanandan Natchimuthu</name>
<email>anand1st@gmail.com</email>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<spring-boot.version>1.5.6.RELEASE</spring-boot.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -208,4 +239,28 @@
</distributionManagement>
</profile>
</profiles>
<pluginRepositories>
<pluginRepository>
<id>spring-milestone</id>
<name>Spring Milestone Repository</name>
<url>https://repo.spring.io/milestone</url>
</pluginRepository>
<pluginRepository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>http://repo.spring.io/snapshot</url>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>spring-milestone</id>
<name>Spring Milestone Repository</name>
<url>https://repo.spring.io/milestone</url>
</repository>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>http://repo.spring.io/snapshot</url>
</repository>
</repositories>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.autoconfigure.CompositeHealthIndicatorConfiguration;
import org.springframework.boot.actuate.health.AbstractHealthIndicator;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.actuate.health.Status;
Expand All @@ -42,7 +42,7 @@
* @author anand
*/
@Component
@ConditionalOnClass(value = CompositeHealthIndicatorConfiguration.class)
@ConditionalOnClass(value = AbstractHealthIndicator.class)
@SshdShellCommand(value = "health", description = "Health of services")
public class HealthCommand {

Expand Down

0 comments on commit 3441af5

Please sign in to comment.